public class NullRegisterAllocator extends RegisterAllocator
A register allocator that maps SSA register n to Rop register 2*n,
essentially preserving the original mapping and remaining agnostic
about normal or wide categories. Used for debugging.
int oldRegCount = ssaMeth.getRegCount();
BasicRegisterMapper mapper = new BasicRegisterMapper(oldRegCount);
for (int i = 0; i < oldRegCount; i++) {
mapper.addMapping(i, i*2, 2);
}
return mapper;