Commit a4176272 by Richard Henderson Committed by Richard Henderson

Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.

        * 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
parent 24cc1193
2005-10-11 Richard Henderson <rth@redhat.com> 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 PR tree-opt/24300
* Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H. * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
* tree-ssa-dce.c: Include cfgloop.h. * tree-ssa-dce.c: Include cfgloop.h.
......
...@@ -2230,7 +2230,8 @@ mode-switching.o : mode-switching.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ ...@@ -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) \ 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) \ $(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) \ 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) \ 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 \ $(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 \ $(DIAGNOSTIC_H) function.h $(TIMEVAR_H) $(TM_H) coretypes.h \
......
...@@ -65,6 +65,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA ...@@ -65,6 +65,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
#include "timevar.h" #include "timevar.h"
#include "flags.h" #include "flags.h"
#include "cfgloop.h" #include "cfgloop.h"
#include "tree-scalar-evolution.h"
static struct stmt_stats static struct stmt_stats
{ {
...@@ -947,6 +948,7 @@ tree_ssa_dce_loop (void) ...@@ -947,6 +948,7 @@ tree_ssa_dce_loop (void)
{ {
perform_tree_ssa_dce (/*aggressive=*/false); perform_tree_ssa_dce (/*aggressive=*/false);
free_numbers_of_iterations_estimates (current_loops); free_numbers_of_iterations_estimates (current_loops);
scev_reset ();
} }
static void static void
...@@ -1023,4 +1025,3 @@ struct tree_opt_pass pass_cd_dce = ...@@ -1023,4 +1025,3 @@ struct tree_opt_pass pass_cd_dce =
| TODO_verify_flow, /* todo_flags_finish */ | TODO_verify_flow, /* todo_flags_finish */
0 /* letter */ 0 /* letter */
}; };
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