re PR tree-optimization/17671 (PHI-OPT is not smart enough)
authorAndrew Pinski <pinskia@physics.uc.edu>
Tue, 8 Mar 2005 00:40:33 +0000 (00:40 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Tue, 8 Mar 2005 00:40:33 +0000 (16:40 -0800)
commit80c4ed35948d670535776c6cf7dd909d9fe4feb1
tree7ae22cec14c557ac1e465d45ea8bdddf4c1774dc
parent64022b5db4e10421bb18b64aed8e67c15ac18cee
re PR tree-optimization/17671 (PHI-OPT is not smart enough)

2005-03-06  Andrew Pinski  <pinskia@physics.uc.edu>

PR tree-opt/17671
* tree-ssa-phiopt.c (tree_ssa_phiopt): Rewrite so we base the
bbs on the COND_EXPR instead of the PHI_NODEs.
(candidate_bb_for_phi_optimization): Remove.
(replace_phi_with_stmt): Rename to ...
(replace_phi_edge_with_variable): this and change so that we
replace the phi argument instead of removing the PHI.
(conditional_replacement): Change so we deal with PHI with more
than two arguments.
(value_replacement): Likewise.
(abs_replacement): Likewise.

2005-03-06  Andrew Pinski  <pinskia@physics.uc.edu>

PR tree-opt/17671
* gcc.dg/tree-ssa/phi-opt-[1-4].c: New tests.

From-SVN: r96067
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-4.c [new file with mode: 0644]
gcc/tree-ssa-phiopt.c