public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/29144] Missing if-conversion. If-conversion dependent on operand order. Inconsistent if-conversion.
       [not found] <bug-29144-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-18 21:35 ` pinskia at gcc dot gnu.org
  2023-06-02  6:04 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-18 21:35 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |10.1.0, 8.1.0

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
For i686 (-m32), GCC does cmov for all functions since GCC 8.1.0; with GCC 10+
having the best code gen so far (there is another bug report about improving
similar functions already).

For x86_64, GCC does cmov for all functions since GCC 4.6.0

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

* [Bug rtl-optimization/29144] Missing if-conversion. If-conversion dependent on operand order. Inconsistent if-conversion.
       [not found] <bug-29144-4@http.gcc.gnu.org/bugzilla/>
  2021-08-18 21:35 ` [Bug rtl-optimization/29144] Missing if-conversion. If-conversion dependent on operand order. Inconsistent if-conversion pinskia at gcc dot gnu.org
@ 2023-06-02  6:04 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-06-02  6:04 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |64700
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=64700

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
a, c is really just another case of PR 64700.

b and d are already optimized on the gimple level by PRE to:
```
  _10 = a_4(D) - b_5(D);
  if (c_3(D) != 0)
    goto <bb 4>; [50.00%]
  else
    goto <bb 3>; [50.00%]

  <bb 3> [local count: 536870913]:
  r_7 = o_6(D) + _10;

  <bb 4> [local count: 1073741824]:
  # r_2 = PHI <_10(2), r_7(3)>
```


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64700
[Bug 64700] Sink common code through PHI

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

* [Bug rtl-optimization/29144] Missing if-conversion. If-conversion dependent on operand order. Inconsistent if-conversion.
  2006-09-19 15:51 [Bug c/29144] New: " Hakon dot Bugge at scali dot com
@ 2009-02-06 20:58 ` steven at gcc dot gnu dot org
  0 siblings, 0 replies; 3+ messages in thread
From: steven at gcc dot gnu dot org @ 2009-02-06 20:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from steven at gcc dot gnu dot org  2009-02-06 20:58 -------
The "near obvious cse" cases are not obvious (requires reassociation). To make
them redundant, you need code hoisting.


-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |23286
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-02-06 20:58:37
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29144


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

end of thread, other threads:[~2023-06-02  6:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-29144-4@http.gcc.gnu.org/bugzilla/>
2021-08-18 21:35 ` [Bug rtl-optimization/29144] Missing if-conversion. If-conversion dependent on operand order. Inconsistent if-conversion pinskia at gcc dot gnu.org
2023-06-02  6:04 ` pinskia at gcc dot gnu.org
2006-09-19 15:51 [Bug c/29144] New: " Hakon dot Bugge at scali dot com
2009-02-06 20:58 ` [Bug rtl-optimization/29144] " steven at gcc dot gnu dot 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).