https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85539
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Target| |x86_64-*-*, i?86-*-* Status|UNCONFIRMED |NEW Last reconfirmed| |2018-04-27 CC| |rguenth at gcc dot gnu.org Version|unknown |9.0 Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. This could be done on GIMPLE as well (beware of endianess!), for example in the bswap pass or in forwprop. Of course on RTL we can also do this and have a better idea whether it will be profitable.