Avoid fix_loop_structure being called twice from tracer

Submitted by Richard Guenther on Feb. 6, 2013, 1:13 p.m.

Details

Message ID alpine.LNX.2.00.1302061413040.6889@zhemvz.fhfr.qr
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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)