summaryrefslogtreecommitdiff
path: root/gcc/ira.c
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-13 13:21:34 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-13 13:21:34 +0000
commitf41ac7bdef132490735ff67758fccbc7c1e901b3 (patch)
tree645ddc683c9b0c8877caa17c71dce5e3a9122af7 /gcc/ira.c
parent6f343c10d94fdb66155fe929c4d63cee7617e03d (diff)
downloadgcc-f41ac7bdef132490735ff67758fccbc7c1e901b3.tar.gz
* ira.c (ira): Set current_loops to &ira_loops before recording
loop exits. Release recorded exits and loops early. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192423 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ira.c')
-rw-r--r--gcc/ira.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ira.c b/gcc/ira.c
index 4a7dcb52043..9a93297b0d4 100644
--- a/gcc/ira.c
+++ b/gcc/ira.c
@@ -4233,8 +4233,8 @@ ira (FILE *f)
if (flag_ira_region == IRA_REGION_ALL || flag_ira_region == IRA_REGION_MIXED)
{
flow_loops_find (&ira_loops);
- record_loop_exits ();
current_loops = &ira_loops;
+ record_loop_exits ();
}
if (internal_flag_ira_verbose > 0 && ira_dump_file != NULL)
@@ -4277,9 +4277,14 @@ ira (FILE *f)
info. */
df_analyze ();
+ /* ??? Rebuild the loop tree, but why? Does the loop tree
+ change if new insns were generated? Can that be handled
+ by updating the loop tree incrementally? */
+ release_recorded_exits ();
+ flow_loops_free (&ira_loops);
flow_loops_find (&ira_loops);
- record_loop_exits ();
current_loops = &ira_loops;
+ record_loop_exits ();
setup_allocno_assignment_flags ();
ira_initiate_assign ();
@@ -4363,6 +4368,7 @@ do_reload (void)
if (current_loops != NULL)
{
+ release_recorded_exits ();
flow_loops_free (&ira_loops);
free_dominance_info (CDI_DOMINATORS);
}