https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115494
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu.org Keywords|needs-bisection | --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Hmm. disabling: /* x | C -> C if we know that x & ~C == 0. */ (simplify (bit_ior SSA_NAME@0 INTEGER_CST@1) (if (INTEGRAL_TYPE_P (TREE_TYPE (@0)) && wi::bit_and_not (get_nonzero_bits (@0), wi::to_wide (@1)) == 0) @1)) Fixes it. So this was caused/exposed by r14-3485-g6df8dcec7196e4 . Note that above pattern is hitting during PRE. I have to double check to make sure that is correct.