https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39761
--- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #13) > Fixed in GCC 8, most likely by r8-5346 . That is DOM is now able to do the > jump threading even at -Os. I should say DOM is doing the jump threading now which is why I think r8-5346 fixed this.