https://bugs.llvm.org/show_bug.cgi?id=35878
Bug ID: 35878
Summary: Loop Vectorizer does not recognize packed load
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Loop Optimizer
Assignee: unassignedb...@nondot.org
Reporter: tras...@gmail.com
CC: llvm-bugs@lists.llvm.org
#include <cstdint>
int foo(uint32_t* __restrict r, uint32_t* __restrict ptr)
{
for (int j = 0; j < 8; ++j)
r[j] = *(ptr++);
}
$ clang -std=c++14 -O3 -S -fverbose-asm -march=haswell
-Rpass-missed=loop-vectorize -Rpass-analysis=loop-vectorize test.cpp
loop control flow is not understood by vectorizer
Oddly enough it does work when changing the return type to void!
https://godbolt.org/g/5uvodB
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs