search for: maxdemot

Displaying 1 result from an estimated 1 matches for "maxdemot".

Did you mean: mapdemo
2008 May 23
0
[LLVMdev] mem2reg & reg2mem
...came up with the bright idea of adding a MaxPromotes flag to limit the number of candidates that mem2reg promotes. But I couldn't figure out how to safely promote some candidates but not others. At the end of the pass, llvm assumes it can just delete all allocas. So I took plan B and added a MaxDemotes to the reg2mem pass and ran it right before regalloc. I cranked it up to demote everything but apparently there are still register allocation candidates left because the resulting program still fails and the asm has spill and reload instructions in it. So I looked at reg2mem and it looks like i...