https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65250
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Target Milestone|--- |8.0 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Fixed for GCC by r8-2701-g9dc3d6a96167b4c84824be5e472fba4956297033 . Basically the gimple level is able to optimize that directly to: _1 = (unsigned int) value_3(D); _5 = _1 <= 2; No reason to try to have combine optimize it any more.