[Bug tree-optimization/103356] bool0 == ~bool1 should simplify to bool1 ^ bool0

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Nov 26 16:47:45 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103356

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note for:

bool f(bool a, bool b)
{
  b = !b;
  return a!=b;
}
We do the correct thing since r13-1779-g375668e0508fbe.


More information about the Gcc-bugs mailing list