https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111456
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced testcase for the missed optimization before and after the patch: ``` _Bool f(int a) { _Bool t = a == 0; short t1 = a; _Bool t2 = t1 >= 0; return t & t2; } ``` This really should just reduce to `return a == 0;`