[llvm-bugs] [Bug 49464] New: [InstCombiner] WRONG code
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Mar 6 16:12:59 PST 2021
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: unassignedbugs at nondot.org
Reporter: paulsson at linux.vnet.ibm.com
CC: llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210307/6841ee7c/attachment-0001.html>
More information about the llvm-bugs
mailing list