arm-common.c (arm_option_optimization_table): Enable -fsched-pressure by default...
authorRamana Radhakrishnan <ramana.radhakrishnan@linaro.org>
Tue, 17 Jul 2012 09:17:20 +0000 (09:17 +0000)
committerRamana Radhakrishnan <ramana@gcc.gnu.org>
Tue, 17 Jul 2012 09:17:20 +0000 (09:17 +0000)
2012-07-17  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
    Ulrich Weigand  <ulrich.weigand@linaro.org>

* 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 <ulrich.weigand@linaro.org>
From-SVN: r189563

gcc/ChangeLog
gcc/common/config/arm/arm-common.c
gcc/config/arm/arm.c

index f9fd72364bbdfe512e0fc2ef24c34aadeced3928..0acf1878f25e9e143217fef27e9bd0f011aef594 100644 (file)
@@ -1,3 +1,11 @@
+2012-07-17  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
+           Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       * 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  <olegendo@gcc.gnu.org>
 
        * config/sh/sh.h (CONST_OK_FOR_I06): Delete.
index b8348bfb9f2bc8c59f152dc5192fa2fe19442a2b..d17b60ed5a8799a135115bd2657e36b9a61763d0 100644 (file)
@@ -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 }
   };
 
index f5d3623e060379b9cae58f9ec72d154f622ea26e..e2f625c653ba74bf3107f2db1d445476c265b758 100644 (file)
@@ -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 ();
 }