[LLVMdev] About user of bitcast/GEP instruction

Jeremy Lakeman Jeremy.Lakeman at gmail.com
Fri Jan 30 03:12:53 PST 2015


If a stack pointer is passed to another function it can't be promoted to a
register, as that function will need to load or store through the pointer.
But while these intrinsics look like functions, they aren't really.

On Fri, Jan 30, 2015 at 8:59 PM, guoqing zhang <gqzhang81 at gmail.com> wrote:

> Hi,
>
> In PromoteMemoryToRegister.cpp, it seems to rely on the fact that the only
> users of bitcast/GEP instruction are lifetime intrinsics
> (llvm.lifetime.start/end). I did some searching in llvm/test folder, it
> seems to be true.
>
> However, by reading LLVM IR manual, I don't see any restriction stated on
> the possible user of bitcast/GEP instruction. So my question is who impose
> the restriction ? Is it Clang ?
>
> Regards
> -guoqing
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150130/a4fe840c/attachment.html>


More information about the llvm-dev mailing list