[llvm-bugs] [Bug 39278] New: [LoopDistribute] wrong code with -enable-loop-distribute -loop-distribute-non-if-convertible

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Oct 13 07:23:36 PDT 2018


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

            Bug ID: 39278
           Summary: [LoopDistribute] wrong code with
                    -enable-loop-distribute
                    -loop-distribute-non-if-convertible
           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 21005
  --> https://bugs.llvm.org/attachment.cgi?id=21005&action=edit
clang unreduced test case (csmith + creduce)

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                                                   
clang -O3 -march=z13 -o a.out -mllvm -enable-loop-distribute -mllvm
-loop-distribute-non-if-convertible             

All but the last prints 0, which prints 9.

-- 
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/20181013/92458dea/attachment.html>


More information about the llvm-bugs mailing list