aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2019-10-14 14:03:35 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2019-10-14 14:03:35 +0000
commitfc2d730302da5cdf340a5100882337a807097f47 (patch)
tree65f3e0e6394e85f54af41bfd50cfafb1c0fc8c59 /gcc/opts.c
parentd2317d50ae2402e5335f2ed807a166359565566b (diff)
downloadgcc-fc2d730302da5cdf340a5100882337a807097f47.zip
gcc-fc2d730302da5cdf340a5100882337a807097f47.tar.gz
gcc-fc2d730302da5cdf340a5100882337a807097f47.tar.bz2
re PR middle-end/92046 (Command line options (that are per-functions) are affecting --params which are global.)
2019-10-14 Richard Biener <rguenther@suse.de> PR middle-end/92046 * dse.c (scan_insn): Use param max_active_local_stores. (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust based on optimization level. * loop-invariant.c (move_loop_invariants): Adjust LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level. * opts.c (default_options_optimization): Do not adjust PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and LOOP_INVARIANT_MAX_BBS_IN_LOOP here. From-SVN: r276963
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 32869ca..ff95853 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -671,21 +671,6 @@ default_options_optimization (struct gcc_options *opts,
opt2 ? 100 : default_param_value (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE),
opts->x_param_values, opts_set->x_param_values);
- /* For -O1 only do loop invariant motion for very small loops. */
- maybe_set_param_value
- (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP,
- opt2 ? default_param_value (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP)
- : default_param_value (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP) / 10,
- opts->x_param_values, opts_set->x_param_values);
-
- /* For -O1 reduce the maximum number of active local stores for RTL DSE
- since this can consume huge amounts of memory (PR89115). */
- maybe_set_param_value
- (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES,
- opt2 ? default_param_value (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES)
- : default_param_value (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES) / 10,
- opts->x_param_values, opts_set->x_param_values);
-
/* At -Ofast, allow store motion to introduce potential race conditions. */
maybe_set_param_value
(PARAM_ALLOW_STORE_DATA_RACES,