Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
authorRichard Henderson <rth@redhat.com>
Tue, 11 Oct 2005 22:24:36 +0000 (15:24 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 11 Oct 2005 22:24:36 +0000 (15:24 -0700)
        * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
        * tree-ssa-dce.c: Include tree-scalar-evolution.h.
        (tree_ssa_dce_loop): Call scev_reset.

From-SVN: r105266

gcc/ChangeLog
gcc/Makefile.in
gcc/tree-ssa-dce.c

index 091ceb8..88834b6 100644 (file)
@@ -1,5 +1,9 @@
 2005-10-11  Richard Henderson  <rth@redhat.com>
 
+       * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
+       * tree-ssa-dce.c: Include tree-scalar-evolution.h.
+       (tree_ssa_dce_loop): Call scev_reset.
+
        PR tree-opt/24300
        * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
        * tree-ssa-dce.c: Include cfgloop.h.
index e72eef9..5bc2811 100644 (file)
@@ -2230,7 +2230,8 @@ mode-switching.o : mode-switching.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
 tree-ssa-dce.o : tree-ssa-dce.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) \
     $(RTL_H) $(TM_P_H) $(TREE_FLOW_H) $(DIAGNOSTIC_H) $(TIMEVAR_H) $(TM_H) \
     coretypes.h $(TREE_DUMP_H) tree-pass.h $(FLAGS_H) $(BASIC_BLOCK_H) \
-    $(GGC_H) hard-reg-set.h $(OBSTACK_H) $(TREE_GIMPLE_H) $(CFGLOOP_H)
+    $(GGC_H) hard-reg-set.h $(OBSTACK_H) $(TREE_GIMPLE_H) $(CFGLOOP_H) \
+    $(SCEV_H)
 tree-ssa-ccp.o : tree-ssa-ccp.c $(TREE_FLOW_H) $(CONFIG_H) \
    $(SYSTEM_H) $(RTL_H) $(TREE_H) $(TM_P_H) $(EXPR_H) $(GGC_H) output.h \
    $(DIAGNOSTIC_H) function.h $(TIMEVAR_H) $(TM_H) coretypes.h \
index 6ad8cf2..ebdbc25 100644 (file)
@@ -65,6 +65,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
 #include "timevar.h"
 #include "flags.h"
 #include "cfgloop.h"
+#include "tree-scalar-evolution.h"
 \f
 static struct stmt_stats
 {
@@ -947,6 +948,7 @@ tree_ssa_dce_loop (void)
 {
   perform_tree_ssa_dce (/*aggressive=*/false);
   free_numbers_of_iterations_estimates (current_loops);
+  scev_reset ();
 }
 
 static void
@@ -1023,4 +1025,3 @@ struct tree_opt_pass pass_cd_dce =
     | TODO_verify_flow,                        /* todo_flags_finish */
   0                                    /* letter */
 };
-