tree-ssa-forwprop.c (record_single_argument_cond_exprs): Accept new parameters for...
authorJeff Law <law@redhat.com>
Thu, 13 May 2004 20:55:06 +0000 (14:55 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 13 May 2004 20:55:06 +0000 (14:55 -0600)
commit91581bccd5c8d82d2a6e06236f346dceab8ae86e
tree530fd846bdc26aea8b21becd4c83cfefd837112e
parent30107ebef8976647bff8c48911202b6cc13d989e
tree-ssa-forwprop.c (record_single_argument_cond_exprs): Accept new parameters for the statement and variable worklist as well as a...

* tree-ssa-forwprop.c (record_single_argument_cond_exprs): Accept
new parameters for the statement and variable worklist as well
as a bitmap of interesting SSA_NAMEs.  Walk over the statement
worklist recording interesting variables in the variable worklist
and bitmap.  Handle casts between integral and boolean types.
(substitute_single_use_vars): Accept new parameters for the statement
and variable worklist.  When a substitution is made add a new
entry to the statement worklist.  Handle casts between integral
and boolean types.
(tree_ssa_forward_propagate_single_use_vars): Rework to pass
worklists to children.  Iterate until the statement worklist
is empty.

* gcc.dg/tree-ssa/20040513-1.c: New test.
* gcc.dg/tree-ssa/20040513-2.c: New test.

From-SVN: r81803
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/20040513-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/20040513-2.c [new file with mode: 0644]
gcc/tree-ssa-forwprop.c