https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106380
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2023-05-18 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Mine. In this case if we fold: _1 = ~s_4(D); _2 = _1 & c_5(D); to s < c Then the rest will be optimized by normally.