https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80093
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Status|UNCONFIRMED |NEW Last reconfirmed| |2017-03-20 CC| |hubicka at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- With -O2 they are comparable. With -O3 we inline more into bar while we inline into a IPA-CPed clone of operator() in foo instead. Not sure where the differences are exactly, -fdump-ipa-inline-details will tell you ... ;)