[LLVMdev] is there some canonical way to extend liveness?

Matt Arsenault arsenm2 at gmail.com
Tue Feb 17 13:34:56 PST 2015


> On Feb 17, 2015, at 12:46 PM, Andy Ayers <andya at microsoft.com> wrote:
> 
> In other compilers I’ve worked on there were special pseudo instructions (or similar mechanisms like adding extra source operands to returns) that allowed you to artificially extend lifetimes of values. For instance we might have a requirement that a certain local (say the ‘this pointer’) remain live throughout the method.
>  
> Is there anything like this in LLVM?
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu <mailto:LLVMdev at cs.uiuc.edu>         http://llvm.cs.uiuc.edu <http://llvm.cs.uiuc.edu/>
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev <http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev>

There isn’t a generic mechanism for this, but SI uses a custom pass and pseudos to accomplish this. See lib/Target/R600/SIFixSGPRLiveRanges.cpp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150217/46981593/attachment.html>


More information about the llvm-dev mailing list