From 1a6230a84d35f4497feffa01b0e9926ce776f4e9 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 21 Oct 2014 12:31:52 +0000 Subject: tree-ssa-phiopt.c (value_replacement): Properly verify we are the non-singleton PHI. 2014-10-21 Richard Biener * tree-ssa-phiopt.c (value_replacement): Properly verify we are the non-singleton PHI. From-SVN: r216510 --- gcc/tree-ssa-phiopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/tree-ssa-phiopt.c') diff --git a/gcc/tree-ssa-phiopt.c b/gcc/tree-ssa-phiopt.c index f62010f..cac3fd6 100644 --- a/gcc/tree-ssa-phiopt.c +++ b/gcc/tree-ssa-phiopt.c @@ -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. */ -- cgit v1.1