[Bug tree-optimization/95034] New: Pattern for xor not converted to xor

gabravier at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun May 10 09:48:44 GMT 2020


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

            Bug ID: 95034
           Summary: Pattern for xor not converted to xor
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gabravier at gmail dot com
  Target Milestone: ---

bool combine(bool a, bool b)
{
    return (a || b) && !(a && b);
}

This can be converted to `a ^ b`. LLVM does this transformation, but GCC does
not.


More information about the Gcc-bugs mailing list