From 22969a8cc829014eea1121926343509970fb4b47 Mon Sep 17 00:00:00 2001 From: Ramana Radhakrishnan Date: Tue, 17 Jul 2012 09:17:20 +0000 Subject: [PATCH] arm-common.c (arm_option_optimization_table): Enable -fsched-pressure by default while optimizing. 2012-07-17 Ramana Radhakrishnan Ulrich Weigand * common/config/arm/arm-common.c (arm_option_optimization_table): Enable -fsched-pressure by default while optimizing. * config/arm/arm.c (arm_option_override): Use the alternate scheduler pressure algorithm by default. Co-Authored-By: Ulrich Weigand From-SVN: r189563 --- gcc/ChangeLog | 8 ++++++++ gcc/common/config/arm/arm-common.c | 1 + gcc/config/arm/arm.c | 5 +++++ 3 files changed, 14 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f9fd72364bb..0acf1878f25 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2012-07-17 Ramana Radhakrishnan + Ulrich Weigand + + * common/config/arm/arm-common.c (arm_option_optimization_table): + Enable -fsched-pressure by default while optimizing. + * config/arm/arm.c (arm_option_override): Use the alternate scheduler + pressure algorithm by default. + 2012-07-16 Oleg Endo * config/sh/sh.h (CONST_OK_FOR_I06): Delete. diff --git a/gcc/common/config/arm/arm-common.c b/gcc/common/config/arm/arm-common.c index b8348bfb9f2..d17b60ed5a8 100644 --- a/gcc/common/config/arm/arm-common.c +++ b/gcc/common/config/arm/arm-common.c @@ -35,6 +35,7 @@ static const struct default_options arm_option_optimization_table[] = /* Enable section anchors by default at -O1 or higher. */ { OPT_LEVELS_1_PLUS, OPT_fsection_anchors, NULL, 1 }, { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 }, + { OPT_LEVELS_1_PLUS, OPT_fsched_pressure, NULL, 1 }, { OPT_LEVELS_NONE, 0, NULL, 0 } }; diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index f5d3623e060..e2f625c653b 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -2009,6 +2009,11 @@ arm_option_override (void) global_options.x_param_values, global_options_set.x_param_values); + /* Use the alternative scheduling-pressure algorithm by default. */ + maybe_set_param_value (PARAM_SCHED_PRESSURE_ALGORITHM, 2, + global_options.x_param_values, + global_options_set.x_param_values); + /* Register global variables with the garbage collector. */ arm_add_gc_roots (); } -- 2.30.2