[llvm-bugs] [Bug 45935] New: unchanged stack array not optimized away
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri May 15 03:32:28 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45935
Bug ID: 45935
Summary: unchanged stack array not optimized away
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: trass3r at gmail.com
CC: llvm-bugs at lists.llvm.org
[[gnu::pure]]
int foo (const int *);
int bar()
{
constexpr int a[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8,
9, 0,
1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 };
return foo (a);
}
https://godbolt.org/z/8eR4jZ
--
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/20200515/fdc0a044/attachment.html>
More information about the llvm-bugs
mailing list