[llvm-bugs] [Bug 44604] New: [Attributor] Loop-aware attribute handling? (alignment)
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jan 21 04:08:23 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=44604
Bug ID: 44604
Summary: [Attributor] Loop-aware attribute handling?
(alignment)
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Global Analyses
Assignee: unassignedbugs at nondot.org
Reporter: lebedev.ri at gmail.com
CC: llvm-bugs at lists.llvm.org
Given
// Type your code here, or load an example.
void test(int* dst, int count) {
dst = (int*)__builtin_assume_aligned(dst, 1024);
for(int i = 0; i != count; ++i)
dst[i] = 42;
}
normal clang -O3 -fno-unroll-loops does result in propagating of alignment
to store. But attributor fails to do that.
https://godbolt.org/z/dncWmz
--
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/20200121/fb60cf1e/attachment.html>
More information about the llvm-bugs
mailing list