public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/101807] New: bool0 < bool1 Should expand as !bool0 &bool1 and bool0 <= bool1 as !bool0 | bool1
@ 2021-08-06 21:22 pinskia at gcc dot gnu.org
  2023-05-18 19:18 ` [Bug middle-end/101807] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-06 21:22 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101807
           Summary: bool0 < bool1 Should expand as !bool0 &bool1 and bool0
                    <= bool1 as !bool0 | bool1
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Take:
bool f(bool a, bool b)
{
    return a<b;
}
bool g(bool a, bool b)
{
  return !a & b;
}
These two should produce similar code.
<= is similar.

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

end of thread, other threads:[~2023-05-20 18:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-06 21:22 [Bug middle-end/101807] New: bool0 < bool1 Should expand as !bool0 &bool1 and bool0 <= bool1 as !bool0 | bool1 pinskia at gcc dot gnu.org
2023-05-18 19:18 ` [Bug middle-end/101807] " pinskia at gcc dot gnu.org
2023-05-18 20:00 ` pinskia at gcc dot gnu.org
2023-05-18 20:01 ` pinskia at gcc dot gnu.org
2023-05-18 20:35 ` pinskia at gcc dot gnu.org
2023-05-20 17:07 ` pinskia at gcc dot gnu.org
2023-05-20 18:29 ` 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).