2008-04-17 Doug Kwan <dougkwan@google.com>
commit50fe4fc6508e298f8771c95c7f215f05d8fc63c3
authordougkwan <dougkwan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Apr 2008 23:50:27 +0000 (21 23:50 +0000)
committerdougkwan <dougkwan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Apr 2008 23:50:27 +0000 (21 23:50 +0000)
treeb5031630b506ad90aed9b1f70213a60ff3d230f6
parentd7f36f1cbe75bd798ac11856d76a9cf93f55425c
2008-04-17  Doug Kwan  <dougkwan@google.com>

* tree-ssa-phiopt.c (FILE): Uncomment all previously disabled code.
(tree_ssa_phiopt): Remove FIXME and re-enable code.
(tree_ssa_cs_elim): Remove FIXME and re-enable code.
(tree_ssa_phiopt_worker): Tuplify.
(replace_phi_edge_with_variable): Tuplify.
(conditional_replacement): Tuplify and simplify optimization logic.
Construct a boolean tree and let fold and force_gimple_operand_gsi
do optimization and code genaration.
(value_replacement): Tuplify.
(minmax_replacement): Tuplify.
(abs_replacement): Tuplify.
(nt_init_block): Tuplify.
(cond_store_replacement): Tuplify.
* gimple.h (gimple_seq_singleton_p): Fix empty sequence bug.
* passes.c (init_optimization_passes): Re-enable pass_cselim
and pass_phiopt.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gimple-tuples-branch@134543 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog.tuples
gcc/gimple.h
gcc/passes.c
gcc/tree-ssa-phiopt.c