[Bug tree-optimization/96245] Failure to optimize arithmetic pattern in switch

2024-02-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96245 Andrew Pinski changed: What|Removed |Added CC||b.buschinski at googlemail dot com ---

[Bug tree-optimization/96245] Failure to optimize arithmetic pattern in switch

2021-11-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96245 Andrew Pinski changed: What|Removed |Added CC||llvm at rifkin dot dev --- Comment #11 f

[Bug tree-optimization/96245] Failure to optimize arithmetic pattern in switch

2020-12-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96245 --- Comment #10 from Jakub Jelinek --- That is just one specific special case, it can be anything else, like case 7: p[14] = 1; break; case 8: p[13] = 1; break; case 9: p[12] = 1; break; case 10: p[11] = 1; break; etc. I think there are advantage

[Bug tree-optimization/96245] Failure to optimize arithmetic pattern in switch

2020-12-14 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96245 --- Comment #9 from rguenther at suse dot de --- On December 14, 2020 12:19:32 PM GMT+01:00, "jakub at gcc dot gnu.org" wrote: >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96245 > >--- Comment #7 from Jakub Jelinek --- >Looking at godbolt and

[Bug tree-optimization/96245] Failure to optimize arithmetic pattern in switch

2020-12-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96245 Jakub Jelinek changed: What|Removed |Added CC||law at gcc dot gnu.org --- Comment #8 fr

[Bug tree-optimization/96245] Failure to optimize arithmetic pattern in switch

2020-12-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96245 --- Comment #7 from Jakub Jelinek --- Looking at godbolt and LLVM release notes, this optimization appeared in LLVM 9 and looks to be a switch optimization: LLVM can now sink similar instructions to a common successor block also when the instruc

[Bug tree-optimization/96245] Failure to optimize arithmetic pattern in switch

2020-12-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96245 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org,

[Bug tree-optimization/96245] Failure to optimize arithmetic pattern in switch

2020-09-22 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96245 Martin Liška changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|marxin at gcc dot

[Bug tree-optimization/96245] Failure to optimize arithmetic pattern in switch

2020-07-23 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96245 Martin Liška changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot gnu.org

[Bug tree-optimization/96245] Failure to optimize arithmetic pattern in switch

2020-07-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96245 --- Comment #4 from Martin Sebor --- Only (1) would be true. Like the optimization, the warning wouldn't trigger in code that didn't follow the pattern because there's no way to tell if that's deliberate or a bug. I'd expect the warning to be u

[Bug tree-optimization/96245] Failure to optimize arithmetic pattern in switch

2020-07-20 Thread josephcsible at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96245 Joseph C. Sible changed: What|Removed |Added CC||josephcsible at gmail dot com --- Comm

[Bug tree-optimization/96245] Failure to optimize arithmetic pattern in switch

2020-07-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96245 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #2

[Bug tree-optimization/96245] Failure to optimize arithmetic pattern in switch

2020-07-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96245 Richard Biener changed: What|Removed |Added Last reconfirmed||2020-07-20 CC|