[llvm-bugs] [Bug 51594] New: [SVE] Don't generate SVE code for simple loop case without pragma
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Aug 23 23:33:50 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51594
Bug ID: 51594
Summary: [SVE] Don't generate SVE code for simple loop case
without pragma
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: AArch64
Assignee: unassignedbugs at nondot.org
Reporter: zhongyunde at tom.com
CC: arnaud.degrandmaison at arm.com,
llvm-bugs at lists.llvm.org, smithp352 at googlemail.com,
Ties.Stuij at arm.com
case from https://reviews.llvm.org/D91077, even with this simple case, the
newest clang will not generate SVE without the pragma
(https://godbolt.org/z/q97sjeqo3, which is fixed dimension Loop Vectorization),
while gcc can (https://godbolt.org/z/vvz7hP3Wq, which is scalable dimension).
void loop(int N, double *a, double *b) {
// #pragma clang loop vectorize_width(4, scalable)
for (int i = 0; i < N; i++) {
a[i] = b[i] + 1.0;
}
}
--
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/20210824/614353cf/attachment.html>
More information about the llvm-bugs
mailing list