Commit 1a6230a8 by Richard Biener Committed by Richard Biener

tree-ssa-phiopt.c (value_replacement): Properly verify we are the non-singleton PHI.

2014-10-21  Richard Biener  <rguenther@suse.de>

	* tree-ssa-phiopt.c (value_replacement): Properly verify we
	are the non-singleton PHI.

From-SVN: r216510
parent 1994d041
2014-10-21 Richard Biener <rguenther@suse.de>
* tree-ssa-phiopt.c (value_replacement): Properly verify we
are the non-singleton PHI.
2014-10-21 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/63563
......@@ -814,7 +814,7 @@ value_replacement (basic_block cond_bb, basic_block middle_bb,
for the edges e0 and e1 then we can remove the middle basic block. */
if (emtpy_or_with_defined_p
&& single_non_singleton_phi_for_edges (phi_nodes (gimple_bb (phi)),
e0, e1))
e0, e1) == phi)
{
replace_phi_edge_with_variable (cond_bb, e1, phi, arg);
/* Note that we optimized this PHI. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment