summaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/final.c b/gcc/final.c
index c1359e8410a..a9b51caeeca 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -664,7 +664,7 @@ insn_current_reference_address (rtx branch)
/* Compute branch alignments based on frequency information in the
CFG. */
-static unsigned int
+unsigned int
compute_alignments (void)
{
int log, max_skip, max_log;
@@ -784,7 +784,10 @@ compute_alignments (void)
}
if (dump_file)
- loop_optimizer_finalize ();
+ {
+ loop_optimizer_finalize ();
+ free_dominance_info (CDI_DOMINATORS);
+ }
return 0;
}