[LLVMdev] Floating Point Register Allocation in X86 backend

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed May 25 12:47:20 PDT 2011


On May 25, 2011, at 12:08 PM, aparna kotha wrote:

> Right. But there are 8 registers on the floating point stack from ST0 to ST7 and I think llvm is only using ST0 to ST6 in some code fragments. Could this be because of the assumption that X86::FP registers run from X86::FP0 to X86:FP6 ?

Yes. My guess it that the code converting from FP to ST registers sometimes needs the extra stack slot.

/jakob




More information about the llvm-dev mailing list