[Bug ipa/99834] missed optimization for dead code elimination at -O3 (vs. -O2)

2023-08-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99834 --- Comment #3 from Andrew Pinski --- The other way of optimizing this is to see that the return value of d is 0 (even early on) and do a const prop of that ... IN a sense an IPA-CCP for return values rather than for argument passing.

[Bug ipa/99834] missed optimization for dead code elimination at -O3 (vs. -O2)

2021-03-31 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99834 --- Comment #2 from Zhendong Su --- Hi Richard and all, thanks for analyzing these reports! I have some more cases, and wonder whether you folks would prefer that I open a meta issue report and append these (and others that we find) to that

[Bug ipa/99834] missed optimization for dead code elimination at -O3 (vs. -O2)

2021-03-31 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99834 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|