https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100925
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2021-06-05 CC| |pinskia at gcc dot gnu.org Status|UNCONFIRMED |NEW --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- It was exposed by r12-1152. Phi-opt produces this now: _9 = _3 != 0B; _10 = (<<< Unknown tree: offset_type >>>) _9; _11 = -_10; /// The above is new _6 = _3 != 0B; _7 = _11 != -1; _8 = _6 & _7; ----- CUT ---- before reassoc we have: _9 = _3 != 0B; _10 = (<<< Unknown tree: offset_type >>>) _9; _11 = -_10; _7 = _11 != -1; _8 = _7 & _9; ---- CUT --- But _9 and _7 will always have the same value even.