[Bug middle-end/65855] SCEV / SCCP missing optimization: triangular numbers
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65855 Roger Sayle changed: What|Removed |Added CC||roger at nextmovesoftware dot com --- Comment #15 from Roger Sayle --- For the record, I proposed a patch for PR65855 back in 2022, https://gcc.gnu.org/pipermail/gcc-patches/2022-February/590579.html but this solution needed some refinement, and wasn't suitable given the stage back then.
[Bug middle-end/65855] SCEV / SCCP missing optimization: triangular numbers
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65855 Alexander Monakov changed: What|Removed |Added CC||uecker at gcc dot gnu.org --- Comment #14 from Alexander Monakov --- *** Bug 123291 has been marked as a duplicate of this bug. ***
[Bug middle-end/65855] SCEV / SCCP missing optimization: triangular numbers
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65855 Andrew Pinski changed: What|Removed |Added CC||goon.pri.low at gmail dot com --- Comment #13 from Andrew Pinski --- *** Bug 112663 has been marked as a duplicate of this bug. ***
[Bug middle-end/65855] SCEV / SCCP missing optimization: triangular numbers
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65855 Andrew Pinski changed: What|Removed |Added CC||gabravier at gmail dot com --- Comment #12 from Andrew Pinski --- *** Bug 98960 has been marked as a duplicate of this bug. ***
[Bug middle-end/65855] SCEV / SCCP missing optimization: triangular numbers
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65855 Andrew Pinski changed: What|Removed |Added CC||[email protected] --- Comment #11 from Andrew Pinski --- *** Bug 46186 has been marked as a duplicate of this bug. ***
[Bug middle-end/65855] SCEV / SCCP missing optimization: triangular numbers
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65855 Andrew Pinski changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org --- Comment #10 from Andrew Pinski --- *** Bug 82519 has been marked as a duplicate of this bug. ***
[Bug middle-end/65855] SCEV / SCCP missing optimization: triangular numbers
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65855 Alexander Monakov changed: What|Removed |Added CC||giuliano.belinassi at usp dot br --- Comment #9 from Alexander Monakov --- *** Bug 88186 has been marked as a duplicate of this bug. ***
[Bug middle-end/65855] SCEV / SCCP missing optimization: triangular numbers
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65855 Andrew Pinski changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment #8 from Andrew Pinski --- *** Bug 86923 has been marked as a duplicate of this bug. ***
[Bug middle-end/65855] SCEV / SCCP missing optimization: triangular numbers
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65855
Richard Biener changed:
What|Removed |Added
Summary|missing optimization: |SCEV / SCCP missing
|triangular numbers |optimization: triangular
||numbers
--- Comment #7 from Richard Biener ---
From the duplicate a related testcase:
int square(int x) {
int result = 0;
for (int i = 0; i < x; ++i)
result += x;
return result;
}
is not optimized into return x * x; while llvm can do that.
