https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100188
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Version|unknown |12.0 CC| |marxin at gcc dot gnu.org Last reconfirmed| |2021-04-22 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Component|tree-optimization |ipa --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- At -O3 we inline less, keeping the call to d() in main(). We then fail to constant propagate the const promoted 'b'. Not sure why IPA CP doesn't get it (promotion happens too late?).