tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
authorAndrew Pinski <apinski@cavium.com>
Mon, 12 Mar 2012 17:53:57 +0000 (17:53 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Mon, 12 Mar 2012 17:53:57 +0000 (10:53 -0700)
commitb928d32b668a27f88fa29204411a98262d9dfa44
tree8ddbdd3046d09f0c4df8090dc9b2e60b4c9b77a8
parent2f986dce2c1dd37ac86ae4da1c0e51c9b516858a
tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.

2012-03-12  Andrew Pinski  <apinski@cavium.com>

* tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
(tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
(value_replacement): Likewise.
(empty_block_p): Check also if the PHIs for the block are empty.

2012-03-12  Andrew Pinski  <apinski@cavium.com>

* gcc.dg/tree-ssa/phi-opt-7.c: New testcase.

From-SVN: r185254
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-7.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-8.c
gcc/tree-ssa-phiopt.c