[LLVMdev] missing register spills?

mats petersson mats at planetcatfish.com
Wed Mar 18 04:35:14 PDT 2015


Would probably help a lot of you posted some real code - both source
and the generated assembly code.

--
Mats

On 18 March 2015 at 06:09, Yang, Cheng-Chih <Cheng-Chih.Yang at amd.com> wrote:
> Hi folks,
>
> I'm running into this weird issue where the register spills appear to be
> missing for an "if" block for some reason. For example, the original if/else
> blocks:
>
> ---
> if  reg0
>
> // storeRegToStackSlot for reg1
> // do something
> - missing a load for reg1?
>
> else
> // storeRegToStackSlot for reg1
> // do something
> // loadRegFromStackSlot for reg1
> end
> ----
>
> I tried looking in the LLVM spiller code but it looked like the load should
> have already been generated at that point. Any suggestions on what I should
> look for here?
>
> Thanks a lot!
> - Chad
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>



More information about the llvm-dev mailing list