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

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Mon Apr 8 05:51:18 PDT 2019

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.



More information about the llvm-dev mailing list