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]

[PATCH] Avoid fix_loop_structure being called twice from tracer


Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.

Richard.

2013-02-06  Richard Biener  <rguenther@suse.de>

	* tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
	instead of calling fix_loop_structure.

Index: gcc/tracer.c
===================================================================
--- gcc/tracer.c	(revision 195784)
+++ gcc/tracer.c	(working copy)
@@ -380,9 +380,9 @@ tracer (void)
   if (changed)
     {
       free_dominance_info (CDI_DOMINATORS);
-      calculate_dominance_info (CDI_DOMINATORS);
+      /* If we changed the CFG schedule loops for fixup by cleanup_cfg.  */
       if (current_loops)
-	fix_loop_structure (NULL);
+	loops_state_set (LOOPS_NEED_FIXUP);
     }
 
   if (dump_file)


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