Patchwork Avoid fix_loop_structure being called twice from tracer

login
register
mail settings
Submitter Richard Guenther
Date Feb. 6, 2013, 1:13 p.m.
Message ID <alpine.LNX.2.00.1302061413040.6889@zhemvz.fhfr.qr>
Download mbox | patch
Permalink /patch/218600/
State New
Headers show

Comments

Richard Guenther - Feb. 6, 2013, 1:13 p.m.
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.

Patch

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)