public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/37240] New: missed if-conversion opportunity
@ 2008-08-26 11:39 bonzini at gnu dot org
2008-08-26 11:40 ` [Bug rtl-optimization/37240] " bonzini at gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: bonzini at gnu dot org @ 2008-08-26 11:39 UTC (permalink / raw)
To: gcc-bugs
In the attached code, changing
if (numbers[maxIdx] < numbers[maxIdx + 1]) maxIdx++;
to
maxIdx += numbers[maxIdx] < numbers[maxIdx + 1];
gives a 10% performance speedup at -O3.
--
Summary: missed if-conversion opportunity
Product: gcc
Version: 4.3.2
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: normal
Priority: P3
Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bonzini at gnu dot org
GCC target triplet: x86_64-pc-linux-gnu
BugsThisDependsOn: 37239
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37240
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug rtl-optimization/37240] missed if-conversion opportunity
2008-08-26 11:39 [Bug rtl-optimization/37240] New: missed if-conversion opportunity bonzini at gnu dot org
@ 2008-08-26 11:40 ` bonzini at gnu dot org
2008-08-26 20:48 ` pinskia at gcc dot gnu dot org
2008-08-27 4:40 ` bonzini at gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: bonzini at gnu dot org @ 2008-08-26 11:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from bonzini at gnu dot org 2008-08-26 11:39 -------
Created an attachment (id=16149)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16149&action=view)
benchmark
this is a modified version of the PR37239 testcase, with the optimization
requested there performed manually.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37240
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug rtl-optimization/37240] missed if-conversion opportunity
2008-08-26 11:39 [Bug rtl-optimization/37240] New: missed if-conversion opportunity bonzini at gnu dot org
2008-08-26 11:40 ` [Bug rtl-optimization/37240] " bonzini at gnu dot org
@ 2008-08-26 20:48 ` pinskia at gcc dot gnu dot org
2008-08-27 4:40 ` bonzini at gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-26 20:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2008-08-26 20:46 -------
I think this is a dup of bug 30521.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37240
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug rtl-optimization/37240] missed if-conversion opportunity
2008-08-26 11:39 [Bug rtl-optimization/37240] New: missed if-conversion opportunity bonzini at gnu dot org
2008-08-26 11:40 ` [Bug rtl-optimization/37240] " bonzini at gnu dot org
2008-08-26 20:48 ` pinskia at gcc dot gnu dot org
@ 2008-08-27 4:40 ` bonzini at gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: bonzini at gnu dot org @ 2008-08-27 4:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from bonzini at gnu dot org 2008-08-27 04:40 -------
*** This bug has been marked as a duplicate of 30521 ***
--
bonzini at gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37240
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-08-27 4:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-26 11:39 [Bug rtl-optimization/37240] New: missed if-conversion opportunity bonzini at gnu dot org
2008-08-26 11:40 ` [Bug rtl-optimization/37240] " bonzini at gnu dot org
2008-08-26 20:48 ` pinskia at gcc dot gnu dot org
2008-08-27 4:40 ` bonzini at 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).