[Bug optimization/13564] New: if-conversion not agressive enough
kazu at cs dot umass dot edu
gcc-bugzilla@gcc.gnu.org
Sun Jan 4 17:30:00 GMT 2004
bar could be optimized to baz.
current mainline uses a jump for bar,
but baz uses setcc
void foo (int);
int
bar (int a)
{
if (a)
foo (1);
else
foo (0);
}
int
baz (int a)
{
foo (!!a);
}
--
Summary: if-conversion not agressive enough
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kazu at cs dot umass dot edu
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13564
More information about the Gcc-bugs
mailing list