/* Loop optimizer initialization routines and RTL loop optimization passes.
- Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GCC.
#include "tree-pass.h"
#include "timevar.h"
#include "flags.h"
+#include "df.h"
#include "ggc.h"
\f
loop_optimizer_finalize ();
free_dominance_info (CDI_DOMINATORS);
- cleanup_cfg (CLEANUP_EXPENSIVE);
- delete_trivially_dead_insns (get_insns (), max_reg_num ());
- reg_scan (get_insns (), max_reg_num ());
+ cleanup_cfg (0);
if (dump_file)
dump_flow_info (dump_file, dump_flags);
struct tree_opt_pass pass_rtl_move_loop_invariants =
{
- "loop2_invariant", /* name */
+ "loop2_invariant", /* name */
gate_rtl_move_loop_invariants, /* gate */
rtl_move_loop_invariants, /* execute */
NULL, /* sub */
0, /* properties_required */
0, /* properties_provided */
0, /* properties_destroyed */
- 0, /* todo_flags_start */
+ 0, /* todo_flags_start */
+ TODO_df_finish | /* This is shutting down the instance in loop_invariant.c */
TODO_dump_func, /* todo_flags_finish */
'L' /* letter */
};
if (number_of_loops () > 1)
{
int flags = 0;
+ if (dump_file)
+ df_dump (dump_file);
if (flag_peel_loops)
flags |= UAP_PEEL;