https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64700
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Status|UNCONFIRMED |NEW Last reconfirmed| |2015-01-21 CC| |rguenth at gcc dot gnu.org Version|unknown |5.0 Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Thanks for splitting out ;) Btw, there is also the corresponding PR23286 for code hoisting with a patch implementing that ontop of PRE. I'd say the sinking part should be part of a partial dead code elimination pass (aka SSU-PRE). Note that in some cases you have the choice of sinking or hoisting so pass ordering will then determine what we do in that case.