This fixes LTO bootstrap which, after the IRA changes to properly
use loop_optimizer_init () and friends, now detects that we may
in fact have invalidated dominator information (and formerly
used this invalid dominator information to build up loops
via flow_loops_find - oops).

LTO bootstrap in stage2, I'll commit it after some more cycles
as obvious.

Richard.

2013-02-08  Richard Biener  <rguent...@suse.de>

        * ira.c (ira): Free broken dominator information.

Index: gcc/ira.c
===================================================================
*** gcc/ira.c   (revision 195878)
--- gcc/ira.c   (working copy)
*************** ira (FILE *f)
*** 4520,4525 ****
--- 4520,4526 ----
             change if new insns were generated?  Can that be handled
             by updating the loop tree incrementally?  */
          loop_optimizer_finalize ();
+         free_dominance_info (CDI_DOMINATORS);
          loop_optimizer_init (AVOID_CFG_MODIFICATIONS
                               | LOOPS_HAVE_RECORDED_EXITS);
  

Reply via email to