[llvm-bugs] [Bug 52461] New: Missed pattern to vectorize in Loop Vectorizer
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Nov 10 00:41:11 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=52461
Bug ID: 52461
Summary: Missed pattern to vectorize in Loop Vectorizer
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Loop Optimizer
Assignee: unassignedbugs at nondot.org
Reporter: david.bolvansky at gmail.com
CC: llvm-bugs at lists.llvm.org
void foo_32(int *a, unsigned N)
{
int p = 1;
for (unsigned i = 0; i < 32; i++, p*=2)
a[i] *= p; // SLP Vectorizer catches this.
}
void foo_N(int *a, unsigned N)
{
int p = 1;
for (unsigned i = 0; i < N; i++, p*=2)
a[i] *= p; // Loop Vectorizer fails to vectorize this code.
}
https://godbolt.org/z/qasEo3cd9
--
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/20211110/18e67efd/attachment.html>
More information about the llvm-bugs
mailing list