OSDN Git Service

2005-03-06 Andrew Pinski <pinskia@physics.uc.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Mar 2005 00:40:33 +0000 (00:40 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Mar 2005 00:40:33 +0000 (00:40 +0000)
commit33784d892c33dd0a786f9773c17099f35bc3cef5
tree7ae22cec14c557ac1e465d45ea8bdddf4c1774dc
parent56eb76905b1a5a83b8328662265e8f5d58a7c301
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96067 138bc75d-0d04-0410-961f-82ee72b054a4
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