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.