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

            Bug ID: 40586
           Summary: [MemorySSA] wrong code
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Global Analyses
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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

I have seen plenty of wrong code cases with -enable-mssa-loop-dependency the
last two weeks (in testing), and have now reduced one program.

gcc -O0 -march=z10 -o a.out
gcc -O1 -march=z10 -o a.out
gcc -O0 -march=z13 -o a.out
gcc -O1 -march=z13 -o a.out
clang -O0 -march=z10 -o a.out
clang -O0 -march=z13 -o a.out
clang -O3 -march=z10 -o a.out
clang -O3 -march=z13 -o a.out

The above programs all print "5", but this one prints "0":

clang -O3 -march=z13 -o a.out -mllvm -enable-mssa-loop-dependency

-- 
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