[llvm-bugs] [Bug 40961] New: loop vectorizer unable to reason with trip count bounds
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Mar 4 14:18:31 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=40961
Bug ID: 40961
Summary: loop vectorizer unable to reason with trip count
bounds
Product: libraries
Version: trunk
Hardware: Other
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Loop Optimizer
Assignee: unassignedbugs at nondot.org
Reporter: oiskuu at gmail.com
CC: llvm-bugs at lists.llvm.org
I see bugs 38280, 37423, but this one is simpler still. Consider the following:
void topup(int a[], unsigned long i)
{
for (; i < 16; i++) {
a[i] = 1;
}
}
The result, compiled with -O -march=haswell
- loop is vectorized despite the small absolute limit on trip count
- vectorized part has loop step of 256 (!) and is actually unreachable
--
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/20190304/5c9c6875/attachment.html>
More information about the llvm-bugs
mailing list