aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index 0069274d0f2..83932cf2bb2 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -612,6 +612,9 @@ predict_loops (struct loops *loops_info, bool simpleloops)
/* Free basic blocks from get_loop_body. */
free (bbs);
}
+
+ if (simpleloops)
+ iv_analysis_done ();
}
/* Statically estimate the probability that a branch will be taken and produce
@@ -1578,6 +1581,14 @@ choose_function_section (void)
of all instances. For now just never set frequency for these. */
|| DECL_ONE_ONLY (current_function_decl))
return;
+
+ /* APPLE LOCAL hot/cold partitioning */
+ /* If we are doing the partitioning optimization, let the optimization
+ choose the correct section into which to put things. */
+ if (flag_reorder_blocks_and_partition)
+ return;
+ /* APPLE LOCAL hot/cold partitioning */
+
if (cfun->function_frequency == FUNCTION_FREQUENCY_HOT)
DECL_SECTION_NAME (current_function_decl) =
build_string (strlen (HOT_TEXT_SECTION_NAME), HOT_TEXT_SECTION_NAME);