http://llvm.org/bugs/show_bug.cgi?id=22526
Bug ID: 22526
Summary: loop vectorizer fails to optimize dot product
Product: new-bugs
Version: trunk
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
clang fails to optimize what looks like a very simple loop to me.
(run on ARM "Juno" box running Fedora 22 and using gcc 4.9.2 to compile llvm)
$ cat test.c
float foo(float *b, float *c) {
int i;
float v = 0.0;
for(i = 0; i < 1000; i++) {
v += b[i] + c[i];
}
return v;
}
$ clang -S -O3 -Rpass-analysis=loop-vectorize test.c
test.c:8:1: remark: loop not vectorized: value that could not be identified as
reduction is used outside the loop [-Rpass-analysis=loop-vectorize]
}
^
test.c:8:1: note: could not determine the original source location for :0:0
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs