This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/37240] New: missed if-conversion opportunity


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]