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

            Bug ID: 49464
           Summary: [InstCombiner]  WRONG code
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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

The reduced program has a loop which executes only two iterations.
LoopVectorizer makes a loop with VF=2, but then InstCombiner removes most
relevant parts of both the scalar and vectorized loop.

clang -march=z14 wrong0.i -o a.out -Os -fno-vectorize -w && ./a.out
1
clang -march=z14 wrong0.i -o a.out -Os -w && ./a.out
0

The program is supposed to print '1'.

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