public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/109691] New: Takes until forwprop2 to remove !a sometimes
@ 2023-05-02  5:06 pinskia at gcc dot gnu.org
  2023-05-02  6:31 ` [Bug tree-optimization/109691] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-05-02  5:06 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109691
           Summary: Takes until forwprop2 to remove !a sometimes
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: internal-improvement, missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Take:
```
int f(_Bool c, int a, int b)
{
        _Bool d = c;
        d = !d;
        if (d != 0) return a;
        return b;
}
```

It takes until forwprop2 now to remove all of the code before the conditional.
In GCC 4.9.0, we used to do it almost all the way in forwprop1; with just one
assignment added.

I noticed this while looking into PR 67628 but it is not exactly an issue there
so filing it seperately.

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

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

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-02  5:06 [Bug tree-optimization/109691] New: Takes until forwprop2 to remove !a sometimes pinskia at gcc dot gnu.org
2023-05-02  6:31 ` [Bug tree-optimization/109691] " pinskia at gcc dot gnu.org
2023-05-02 23:58 ` pinskia at gcc dot gnu.org
2023-05-03  3:25 ` pinskia at gcc dot gnu.org
2023-05-05  5:16 ` pinskia at gcc dot gnu.org
2023-05-05  6:09 ` pinskia at gcc dot gnu.org
2023-05-05 15:18 ` pinskia at gcc dot gnu.org
2023-05-08  6:18 ` cvs-commit at gcc dot gnu.org
2023-05-08  6:18 ` 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).