This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14847] [tree-ssa] combine "if (a & 1) goto there" and "if (a & 4) goto there"
- 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 Apr 2004 16:52:49 -0000
- Subject: [Bug optimization/14847] [tree-ssa] combine "if (a & 1) goto there" and "if (a & 4) goto there"
- References: <20040404164820.14847.kazu@cs.umass.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From kazu at cs dot umass dot edu 2004-04-04 16:52 -------
Convert foo() to baz().
void bar (void);
void
foo (unsigned int a)
{
if (a & 1)
goto heaven;
if (a & 4)
goto heaven;
return;
heaven:
bar ();
}
void
baz (unsigned int a)
{
if (a & 5)
goto heaven;
return;
heaven:
bar ();
}
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pessimizes-code
Summary|[tree-ssa |[tree-ssa] combine "if (a &
| |1) goto there" and "if (a &
| |4) goto there"
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14847