This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[tree-ssa] Disable tree loop optimizer by default


As discussed earlier.


Diego.

	* opts.c (decode_options): Do not enable the tree loop optimizer by
	default.
	* tree-ssa-loop.c (tree_ssa_loop_opt): Remove ENABLE_CHECKING
	guards.

Index: opts.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/opts.c,v
retrieving revision 1.31.2.21
diff -d -c -p -d -c -p -r1.31.2.21 opts.c
*** opts.c	6 Dec 2003 12:31:27 -0000	1.31.2.21
--- opts.c	11 Dec 2003 18:51:50 -0000
*************** decode_options (unsigned int argc, const
*** 535,541 ****
        flag_tree_ccp = 1;
        flag_tree_dce = 1;
        flag_tree_dom = 1;
!       flag_tree_loop = 1;
        flag_tree_must_alias = 1;
        flag_tree_pre = 1;
        flag_tree_ter = 1;
--- 535,541 ----
        flag_tree_ccp = 1;
        flag_tree_dce = 1;
        flag_tree_dom = 1;
!       flag_tree_loop = 0;
        flag_tree_must_alias = 1;
        flag_tree_pre = 1;
        flag_tree_ter = 1;
Index: tree-ssa-loop.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa-loop.c,v
retrieving revision 1.1.2.2
diff -d -c -p -d -c -p -r1.1.2.2 tree-ssa-loop.c
*** tree-ssa-loop.c	7 Dec 2003 15:12:13 -0000	1.1.2.2
--- tree-ssa-loop.c	11 Dec 2003 18:51:50 -0000
*************** Software Foundation, 59 Temple Place - S
*** 35,44 ****
  #include "timevar.h"
  
  /* Dump file and flags.  */
- #if defined ENABLE_CHECKING
  static FILE *dump_file;
  static int dump_flags;
- #endif
  
  /* The main entry into loop optimization pass.  PHASE indicates which dump file
     from the DUMP_FILES array to use when dumping debugging information.
--- 35,42 ----
*************** void
*** 48,54 ****
  tree_ssa_loop_opt (tree fndecl ATTRIBUTE_UNUSED,
  		   enum tree_dump_index phase ATTRIBUTE_UNUSED)
  {
- #ifdef ENABLE_CHECKING
    struct loops *loops;
  
    /* Does nothing for now except for checking that we are able to build the
--- 46,51 ----
*************** tree_ssa_loop_opt (tree fndecl ATTRIBUTE
*** 67,71 ****
        dump_function_to_file (fndecl, dump_file, dump_flags);
        dump_end (phase, dump_file);
      }
- #endif
  }
--- 64,67 ----



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]