[Bug tree-optimization/85509] fails to promote local static to const

2021-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85509 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement --- Comment #6 from Andrew

[Bug tree-optimization/85509] fails to promote local static to const

2018-04-25 Thread aaron_sami_abassi at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85509 --- Comment #5 from ASA --- > > I would expect this is likely true for any non-const static duration > > function pointer, not just the case when the auto type specifier is used, > > but I have not confirmed it. > > But it is the case for any

[Bug tree-optimization/85509] fails to promote local static to const

2018-04-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85509 --- Comment #4 from Richard Biener --- (In reply to ASA from comment #3) > (In reply to Richard Biener from comment #2) > > The issue is you fail to make PerformQuickly and PerformSafely const and GCC > > doesn't have local analysis to promote

[Bug tree-optimization/85509] fails to promote local static to const

2018-04-24 Thread aaron_sami_abassi at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85509 --- Comment #3 from ASA --- (In reply to Richard Biener from comment #2) > The issue is you fail to make PerformQuickly and PerformSafely const and GCC > doesn't have local analysis to promote it so and IPA analysis is too late > for that since

[Bug tree-optimization/85509] fails to promote local static to const

2018-04-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85509 Richard Biener changed: What|Removed |Added Keywords||missed-optimization