[Bug optimization/14758] New: [tree-ssa] another missed forward propagation opportunity
kazu at cs dot umass dot edu
gcc-bugzilla@gcc.gnu.org
Sun Mar 28 01:54:00 GMT 2004
void bar (void);
void
foo (int a)
{
a = !a;
a = !a;
a = !a;
a = !a;
a = !a;
if (a)
bar ();
}
Here is the last tree in SSA form:
foo (a)
{
<bb 0>:
a_2 = a_1 == 0;
a_3 = a_2 == 0;
if (a_3 == 0) goto <L0>; else goto <L1>;
<L0>:;
bar () [tail call];
<L1>:;
return;
}
Note that a_2 and a_3 still remain.
--
Summary: [tree-ssa] another missed forward propagation
opportunity
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Keywords: pessimizes-code
Severity: enhancement
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14758
More information about the Gcc-bugs
mailing list