aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2019-10-10 14:02:25 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2019-10-10 14:02:25 +0000
commit247afa98ba2512c7d90f3e9e05af41067ef756a3 (patch)
treeab4b351127d672cf2cd574866297570353c15fea /gcc/opts.c
parent019f36a648fd3f35e562eb7ddd3ff6393b30b4c7 (diff)
downloadgcc-247afa98ba2512c7d90f3e9e05af41067ef756a3.zip
gcc-247afa98ba2512c7d90f3e9e05af41067ef756a3.tar.gz
gcc-247afa98ba2512c7d90f3e9e05af41067ef756a3.tar.bz2
re PR middle-end/92046 (Command line options (that are per-functions) are affecting --params which are global.)
2019-10-10 Richard Biener <rguenther@suse.de> PR middle-end/92046 * opts.c (finish_options): Do not influence global --params from options that are adjustable per function. * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Apply --param adjustment based on active cost-model. * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable further store-sinking when vectorization or if-conversion are not enabled. From-SVN: r276807
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 2df0351..83d8a87 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -1123,24 +1123,6 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set,
&& !opts_set->x_flag_reorder_functions)
opts->x_flag_reorder_functions = 1;
- /* Tune vectorization related parametees according to cost model. */
- if (opts->x_flag_vect_cost_model == VECT_COST_MODEL_CHEAP)
- {
- maybe_set_param_value (PARAM_VECT_MAX_VERSION_FOR_ALIAS_CHECKS,
- 6, opts->x_param_values, opts_set->x_param_values);
- maybe_set_param_value (PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS,
- 0, opts->x_param_values, opts_set->x_param_values);
- maybe_set_param_value (PARAM_VECT_MAX_PEELING_FOR_ALIGNMENT,
- 0, opts->x_param_values, opts_set->x_param_values);
- }
-
- /* Set PARAM_MAX_STORES_TO_SINK to 0 if either vectorization or if-conversion
- is disabled. */
- if ((!opts->x_flag_tree_loop_vectorize && !opts->x_flag_tree_slp_vectorize)
- || !opts->x_flag_tree_loop_if_convert)
- maybe_set_param_value (PARAM_MAX_STORES_TO_SINK, 0,
- opts->x_param_values, opts_set->x_param_values);
-
/* The -gsplit-dwarf option requires -ggnu-pubnames. */
if (opts->x_dwarf_split_debug_info)
opts->x_debug_generate_pub_sections = 2;