OSDN Git Service

PR tree-optimization/40759
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Jul 2009 16:37:50 +0000 (16:37 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Jul 2009 16:37:50 +0000 (16:37 +0000)
* 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/ChangeLog
gcc/tree-ssa-dce.c

index a20aed1..fc6cf1d 100644 (file)
@@ -1,3 +1,9 @@
+2009-07-28  Jan Hubicka  <jh@suse.cz>
+
+       PR tree-optimization/40759
+       * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
+       for renaming.
+
 2009-07-27  DJ Delorie  <dj@redhat.com>
 
        * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
index bbf37f7..c1f4e7f 100644 (file)
@@ -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);