https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88533
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> --- Created attachment 45252 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45252&action=edit patch Even though the patch doesn't hoist the invariant condition the speed is back with it. Can you verify that?