public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/95034] New: Pattern for xor not converted to xor
@ 2020-05-10  9:48 gabravier at gmail dot com
  2020-05-13 12:38 ` [Bug tree-optimization/95034] Failure to convert xor pattern (made out of or+and) " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gabravier at gmail dot com @ 2020-05-10  9:48 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-10-17  4:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-10  9:48 [Bug tree-optimization/95034] New: Pattern for xor not converted to xor gabravier at gmail dot com
2020-05-13 12:38 ` [Bug tree-optimization/95034] Failure to convert xor pattern (made out of or+and) " pinskia at gcc dot gnu.org
2021-01-12 10:33 ` jakub at gcc dot gnu.org
2021-01-12 10:56 ` jakub at gcc dot gnu.org
2021-01-12 11:03 ` jakub at gcc dot gnu.org
2021-01-12 12:12 ` jakub at gcc dot gnu.org
2021-04-17 21:03 ` pinskia at gcc dot gnu.org
2023-08-23  2:16 ` pinskia at gcc dot gnu.org
2023-10-17  4:39 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).