https://bugs.llvm.org/show_bug.cgi?id=40522
Bug ID: 40522
Summary: [SLPVectorizer] Failure to use vector store as a seed
point
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: unassignedb...@nondot.org
Reporter: llvm-...@redking.me.uk
CC: a.bat...@hotmail.com, llvm-bugs@lists.llvm.org,
spatel+l...@rotateright.com
https://godbolt.org/z/6NyXmr
void test1(float a, float b, float c, float d, int *p) {
int4 result = (int4) { (int) a, (int) b, (int) c, (int) d };
*p++ = result[0];
*p++ = result[1];
*p++ = result[2];
*p++ = result[3];
}
void test1_vec(float a, float b, float c, float d, int4 *p) {
int4 result = (int4) { (int) a, (int) b, (int) c, (int) d };
*p = result;
}
We will vectorize the first variant but not the second.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs