[llvm-dev] GVN-Hoist test case not working

Digvijay Gour via llvm-dev llvm-dev at lists.llvm.org
Mon Apr 8 15:07:52 PDT 2019


It works!
Thank You

On Mon, Apr 8, 2019 at 6:21 PM Tim Northover <t.p.northover at gmail.com>
wrote:

> On Mon, 8 Apr 2019 at 12:22, Digvijay Gour via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
> > I was trying a basic example on LLVM GVN Hoist and output differs from
> what I expect. Am I missing something ?
>
> At -O0 Clang usually attaches the "optnone" attribute to functions it
> generates, which disables all LLVM passes even if they get run. Try
> adding "-Xclang -disable-O0-optnone" to the Clang command line.
>
> Cheers.
>
> Tim.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190409/64e66f32/attachment.html>


More information about the llvm-dev mailing list