https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39761
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |8.0 Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Fixed in GCC 8, most likely by r8-5346 . That is DOM is now able to do the jump threading even at -Os.