[Bug tree-optimization/37537] New: mfcr is produced when a branch should be done
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Sep 16 01:45:00 GMT 2008
Reduced from PR 37536, but this is actually what the user did:
int f(int a, int b, int c)
{
if (a > 0 ? b < c: b > c)
return a;
else
return b;
}
This should be able to rewritten as:
int f(int a, int b, int c)
{
if (a > 0)
{
if (b < c)
return a;
} else if (b > c)
return a;
return b;
}
--
Summary: mfcr is produced when a branch should be done
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37537
More information about the Gcc-bugs
mailing list