Register Allocation

Hi,

I'm currently working on a register allocation problem. Therefore, I want to reduce the number of available registers of the ARM by a large amount to see the impact on the assembly code. I tried to change the number via the ARMRegisterInfo.td by stripping the registerClasses (like it is described in the Code generator docs), but the resulting code is unchanged.
Is there an easy alternative using the registerscavening.cpp directly or did I miss out something?

Hi,

I'm currently working on a register allocation problem. Therefore, I
want to reduce the number of available registers of the ARM by a large
amount to see the impact on the assembly code. I tried to change the
number via the ARMRegisterInfo.td by stripping the registerClasses (like
it is described in the Code generator docs), but the resulting code is
unchanged.

If you removed the registers from the GPR register files that will ensure those registers are not used. Are you sure you have rebuilt llc and you are testing it right? Perhaps your test doesn't need many registers?

Evan