This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/37240] New: missed if-conversion opportunity
- From: "bonzini at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Aug 2008 11:37:55 -0000
- Subject: [Bug rtl-optimization/37240] New: missed if-conversion opportunity
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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