Discovered that we blindly set flag_ira_loop_pressure at -O3+,
regardless of whether command line option was given. Following fixes that.
Bootstrap/regtest with no new regressions, ok for trunk?
-Pat
2014-01-22 Pat Haugen <pthau...@us.ibm.com>
* config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
force flag_ira_loop_pressure if set via command line.
Index: config/rs6000/rs6000.c
===================================================================
--- config/rs6000/rs6000.c (revision 206861)
+++ config/rs6000/rs6000.c (working copy)
@@ -3039,7 +3039,8 @@ rs6000_option_override_internal (bool gl
calculation works better for RTL loop invariant motion on targets
with enough (>= 32) registers. It is an expensive optimization.
So it is on only for peak performance. */
- if (optimize >= 3 && global_init_p)
+ if (optimize >= 3 && global_init_p
+ && !global_options_set.x_flag_ira_loop_pressure)
flag_ira_loop_pressure = 1;
/* Set the pointer size. */