aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index 0069274d0f2..223f43a5455 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -1578,6 +1578,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);