https://bugs.llvm.org/show_bug.cgi?id=35354
Bug ID: 35354
Summary: [loop vectorize] LLVM cannot vectorize a loop with
std::max on float/double.
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Loop Optimizer
Assignee: unassignedb...@nondot.org
Reporter: co...@google.com
CC: llvm-bugs@lists.llvm.org
LLVM cannot vectorize the following loop:
float a[1000], b[1000];
void foo() {
for (int i = 0; i < 1000; ++i)
a[i] = std::max(a[i], b[i]);
}
https://godbolt.org/g/noVjyp
Bug GCC can:
https://godbolt.org/g/nkSuCU
--
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