[llvm-dev] LLVM 3.9 RC2's SCCP pass removing calls to external functions?!

Daniel Berlin via llvm-dev llvm-dev at lists.llvm.org
Wed Aug 24 08:57:12 PDT 2016


Actually, this is false.
It will infer the attribute :)



On Wed, Aug 24, 2016 at 5:47 AM, Renato Golin via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> On 24 August 2016 at 11:45, Alexandre Isoard <alexandre.isoard at gmail.com>
> wrote:
> > However, he also stated that in the case the functions returns void it is
> > not removed, which suggest there is something fishier going on.
>
> Looking back at the example (and LangRef, for function attributes),
> looks like it's not legal to remove because the function does *not*
> have "readnone" or "readonly", so LLVM can't prove it side-effect
> free.
>
> Sanjoy's fix is probably on the right track.
>
> --renato
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160824/1b1ffc59/attachment.html>


More information about the llvm-dev mailing list