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: unassignedb...@nondot.org
Reporter: tras...@gmail.com
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs