https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109960
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 55913 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55913&action=edit part of the ifcombine fixes It does not catch: _10 = _5 >> 1; _11 = (_Bool) _10; if (_11 != 0) Though. I will add that in a bit. That is used for PR 108370.