This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13564] New: if-conversion not agressive enough
- From: "kazu at cs dot umass dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jan 2004 17:30:28 -0000
- Subject: [Bug optimization/13564] New: if-conversion not agressive enough
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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