From 3e5688bf726b95a180d6e72d5932dad962df57a6 Mon Sep 17 00:00:00 2001 From: hubicka Date: Tue, 28 Jul 2009 16:37:50 +0000 Subject: PR tree-optimization/40759 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses for renaming. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150168 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/tree-ssa-dce.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'gcc/tree-ssa-dce.c') diff --git a/gcc/tree-ssa-dce.c b/gcc/tree-ssa-dce.c index bbf37f7a028..c1f4e7f647b 100644 --- a/gcc/tree-ssa-dce.c +++ b/gcc/tree-ssa-dce.c @@ -828,9 +828,6 @@ mark_virtual_phi_result_for_renaming (gimple phi) } FOR_EACH_IMM_USE_STMT (stmt, iter, gimple_phi_result (phi)) { - if (gimple_code (stmt) != GIMPLE_PHI - && !gimple_plf (stmt, STMT_NECESSARY)) - continue; FOR_EACH_IMM_USE_ON_STMT (use_p, iter) SET_USE (use_p, SSA_NAME_VAR (gimple_phi_result (phi))); update_stmt (stmt); -- cgit v1.2.1