public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/103228] New: [9/10/11/12 Regression] missed optimization with |^ at the gimple level
@ 2021-11-14  6:30 pinskia at gcc dot gnu.org
  2021-11-14  6:30 ` [Bug tree-optimization/103228] " pinskia at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-14  6:30 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103228
           Summary: [9/10/11/12 Regression] missed optimization with |^ at
                    the gimple level
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: 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(int a, int b)
{
  b|=1u;
  b|=2;
  return b;
}

----- CUT ---
This no longer gets optimized at the gimple level but it did in 4.7.x.
This is also true for ^.

I Noticed this while writing testcases for PR 103216.

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

end of thread, other threads:[~2021-11-17 23:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-14  6:30 [Bug tree-optimization/103228] New: [9/10/11/12 Regression] missed optimization with |^ at the gimple level pinskia at gcc dot gnu.org
2021-11-14  6:30 ` [Bug tree-optimization/103228] " pinskia at gcc dot gnu.org
2021-11-15  8:34 ` pinskia at gcc dot gnu.org
2021-11-15  8:37 ` pinskia at gcc dot gnu.org
2021-11-15  9:06 ` rguenth at gcc dot gnu.org
2021-11-15  9:07 ` rguenth at gcc dot gnu.org
2021-11-15  9:14 ` pinskia at gcc dot gnu.org
2021-11-16  3:32 ` cvs-commit at gcc dot gnu.org
2021-11-16  3:33 ` pinskia at gcc dot gnu.org
2021-11-16  3:36 ` pinskia at gcc dot gnu.org
2021-11-17 23:40 ` cvs-commit at gcc dot gnu.org
2021-11-17 23:40 ` 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).