[LLVMdev] Floating Point Register Allocation in X86 backend

aparna kotha kotha.aparna at gmail.com
Wed May 25 16:14:15 PDT 2011


In case we want to have an unsafe register allocator that allocated FP0 to
FP6 to include FP7 as well, where in the code should we add this?



--Aparna

On Wed, May 25, 2011 at 3:47 PM, Jakob Stoklund Olesen <stoklund at 2pi.dk>wrote:

>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110525/1a5841d3/attachment.html>


More information about the llvm-dev mailing list