[LLVMdev] Patch - big stackframes on SPU

Anton Korobeynikov anton at korobeynikov.info
Fri Feb 26 03:15:29 PST 2010


Hello

> Would it be possible to conditionally enable the register scavenger only if
> the function has a big stack? It now gets unconditionally enabled in
>  SPURegisterInfo::requiresRegisterScavenging(const MachineFunction &MF).
> Just checking MF.getFrameInfo()->getStackSize() here doesn't seem to be the
> solution...
Well, I think no. regscavenger should work well regardless of any
settings. Currently it's heavily used for ARM, so, you might want to
look how the stuff is solved there.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University




More information about the llvm-dev mailing list