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