public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/38209] branch optimisation generates worse code
       [not found] <bug-38209-4@http.gcc.gnu.org/bugzilla/>
@ 2021-07-26 20:22 ` pinskia at gcc dot gnu.org
  2022-11-19 22:43 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-26 20:22 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |pinskia at gcc dot gnu.org
             Status|NEW                         |ASSIGNED
           Severity|normal                      |enhancement

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Mine.

  if (val_2(D) != 0)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  val_4 = ~val_2(D);

  <bb 4> :
  # val_1 = PHI <val_4(3), 255(2)>

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

* [Bug tree-optimization/38209] branch optimisation generates worse code
       [not found] <bug-38209-4@http.gcc.gnu.org/bugzilla/>
  2021-07-26 20:22 ` [Bug tree-optimization/38209] branch optimisation generates worse code pinskia at gcc dot gnu.org
@ 2022-11-19 22:43 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-19 22:43 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0
             Status|ASSIGNED                    |RESOLVED
      Known to work|                            |12.1.0
         Resolution|---                         |FIXED

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed for GCC 12 by r12-5699-gde3e5aae6c4b540e8
Specifically this part:
    X != C1 ? ~X : C2 simplifies to ~X when ~C1 == C2.
    which is the BIT_NOT_EXPR analog of the NEGATE_EXPR case.

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

end of thread, other threads:[~2022-11-19 22:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-38209-4@http.gcc.gnu.org/bugzilla/>
2021-07-26 20:22 ` [Bug tree-optimization/38209] branch optimisation generates worse code pinskia at gcc dot gnu.org
2022-11-19 22:43 ` 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).