Wednesday, July 26, 2006

Changing number regs

I have reduced the number of available registers to test my results. This allows me to see how the spilling algorithm is working. Well, the algorithm is working, somehow... but there are still some bugs to be fixed. The problem is that the code been generated is not good. Anyways, to change the number of registers in the target architecture is fairly easy, and I own this information to a nice gentleman who answered my question in the discussion list. Copying his words: "inside the TargetRegsterInfo.td file just search for RegisterClass - the last parameter of which is a list of registers. Just commenting some out is one way to avoid them being used. More polite is to explicitly exclude some registers from the "allocation order" - see IA64RegisterInfo.td:443 for an example of this (there, numReservedRegs worth of registers are hidden.)"

0 Comments:

Post a Comment

<< Home