https://bugs.llvm.org/show_bug.cgi?id=50066

            Bug ID: 50066
           Summary: [GVN-hoist]  WRONG code
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Created attachment 24778
  --> https://bugs.llvm.org/attachment.cgi?id=24778&action=edit
reduced testcase

The program should print '1', but prints '2' when compiled like this:

clang -O3 -march=arch13 wrong0.i -o a.out -w -mllvm -disable-licm-promotion
-mllvm -enable-gvn-hoist -mllvm -gvn-hoist-max-bbs=10 -mllvm -sink-common-insts
-mllvm -keep-loops=false

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to