[llvm-bugs] [Bug 42294] New: [mssa-loop-dep] wrong code

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jun 16 23:45:25 PDT 2019


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

            Bug ID: 42294
           Summary: [mssa-loop-dep]  wrong code
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Loop Optimizer
          Assignee: unassignedbugs at nondot.org
          Reporter: paulsson at linux.vnet.ibm.com
                CC: llvm-bugs at lists.llvm.org

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

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 -O3 -march=zEC12 -o a.out
clang -O3 -march=z13 -o a.out

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

With the reduced test case, the first seven compilations produce a program that
prints "0", while the last one prints "2".

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190617/935fdd96/attachment.html>


More information about the llvm-bugs mailing list