Remove flag_tree_vectorize
gcc/ * common.opt (ftree-vectorize): No longer set flag_tree_vectorize. (ftree-loop-vectorize): Set as EnabledBy ftree-vectorize. (ftree-slp-vectorize): Likewise. * omp-expand (expand_omp_simd): Remove flag_tree_vectorize, as it can no longer be set independent of flag_tree_loop_vectorize. * omp-general.c (emp_max_vf): Likewise. * opts.c (enable_fdo_optimizations): Remove references to flag_tree_vectorize, these are now implicit. (common_handle_option): Remove handling for OPT_ftree_vectorize, and leave it for the options machinery. From-SVN: r250774
This commit is contained in:
parent
225dcdec6f
commit
26d476cd52
|
@ -1,3 +1,16 @@
|
||||||
|
2017-08-01 James Greenhalgh <james.greenhalgh@arm.com>
|
||||||
|
|
||||||
|
* common.opt (ftree-vectorize): No longer set flag_tree_vectorize.
|
||||||
|
(ftree-loop-vectorize): Set as EnabledBy ftree-vectorize.
|
||||||
|
(ftree-slp-vectorize): Likewise.
|
||||||
|
* omp-expand (expand_omp_simd): Remove flag_tree_vectorize, as it
|
||||||
|
can no longer be set independent of flag_tree_loop_vectorize.
|
||||||
|
* omp-general.c (emp_max_vf): Likewise.
|
||||||
|
* opts.c (enable_fdo_optimizations): Remove references to
|
||||||
|
flag_tree_vectorize, these are now implicit.
|
||||||
|
(common_handle_option): Remove handling for OPT_ftree_vectorize,
|
||||||
|
and leave it for the options machinery.
|
||||||
|
|
||||||
2017-08-01 Martin Liska <mliska@suse.cz>
|
2017-08-01 Martin Liska <mliska@suse.cz>
|
||||||
|
|
||||||
PR middle-end/70140
|
PR middle-end/70140
|
||||||
|
|
|
@ -2691,8 +2691,9 @@ fvar-tracking-uninit
|
||||||
Common Report Var(flag_var_tracking_uninit) PerFunction
|
Common Report Var(flag_var_tracking_uninit) PerFunction
|
||||||
Perform variable tracking and also tag variables that are uninitialized.
|
Perform variable tracking and also tag variables that are uninitialized.
|
||||||
|
|
||||||
|
; Alias to enable both -ftree-loop-vectorize and -ftree-slp-vectorize.
|
||||||
ftree-vectorize
|
ftree-vectorize
|
||||||
Common Report Var(flag_tree_vectorize) Optimization
|
Common Report Optimization
|
||||||
Enable vectorization on trees.
|
Enable vectorization on trees.
|
||||||
|
|
||||||
ftree-vectorizer-verbose=
|
ftree-vectorizer-verbose=
|
||||||
|
@ -2700,11 +2701,11 @@ Common Joined RejectNegative Ignore
|
||||||
Does nothing. Preserved for backward compatibility.
|
Does nothing. Preserved for backward compatibility.
|
||||||
|
|
||||||
ftree-loop-vectorize
|
ftree-loop-vectorize
|
||||||
Common Report Var(flag_tree_loop_vectorize) Optimization
|
Common Report Var(flag_tree_loop_vectorize) Optimization EnabledBy(ftree-vectorize)
|
||||||
Enable loop vectorization on trees.
|
Enable loop vectorization on trees.
|
||||||
|
|
||||||
ftree-slp-vectorize
|
ftree-slp-vectorize
|
||||||
Common Report Var(flag_tree_slp_vectorize) Optimization
|
Common Report Var(flag_tree_slp_vectorize) Optimization EnabledBy(ftree-vectorize)
|
||||||
Enable basic block vectorization (SLP) on trees.
|
Enable basic block vectorization (SLP) on trees.
|
||||||
|
|
||||||
fvect-cost-model=
|
fvect-cost-model=
|
||||||
|
|
|
@ -4851,8 +4851,7 @@ expand_omp_simd (struct omp_region *region, struct omp_for_data *fd)
|
||||||
/* If not -fno-tree-loop-vectorize, hint that we want to vectorize
|
/* If not -fno-tree-loop-vectorize, hint that we want to vectorize
|
||||||
the loop. */
|
the loop. */
|
||||||
if ((flag_tree_loop_vectorize
|
if ((flag_tree_loop_vectorize
|
||||||
|| (!global_options_set.x_flag_tree_loop_vectorize
|
|| !global_options_set.x_flag_tree_loop_vectorize)
|
||||||
&& !global_options_set.x_flag_tree_vectorize))
|
|
||||||
&& flag_tree_loop_optimize
|
&& flag_tree_loop_optimize
|
||||||
&& loop->safelen > 1)
|
&& loop->safelen > 1)
|
||||||
{
|
{
|
||||||
|
|
|
@ -429,8 +429,7 @@ omp_max_vf (void)
|
||||||
|| optimize_debug
|
|| optimize_debug
|
||||||
|| !flag_tree_loop_optimize
|
|| !flag_tree_loop_optimize
|
||||||
|| (!flag_tree_loop_vectorize
|
|| (!flag_tree_loop_vectorize
|
||||||
&& (global_options_set.x_flag_tree_loop_vectorize
|
&& global_options_set.x_flag_tree_loop_vectorize))
|
||||||
|| global_options_set.x_flag_tree_vectorize)))
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
int vf = 1;
|
int vf = 1;
|
||||||
|
|
12
gcc/opts.c
12
gcc/opts.c
|
@ -1477,11 +1477,9 @@ enable_fdo_optimizations (struct gcc_options *opts,
|
||||||
opts->x_flag_unswitch_loops = value;
|
opts->x_flag_unswitch_loops = value;
|
||||||
if (!opts_set->x_flag_gcse_after_reload)
|
if (!opts_set->x_flag_gcse_after_reload)
|
||||||
opts->x_flag_gcse_after_reload = value;
|
opts->x_flag_gcse_after_reload = value;
|
||||||
if (!opts_set->x_flag_tree_loop_vectorize
|
if (!opts_set->x_flag_tree_loop_vectorize)
|
||||||
&& !opts_set->x_flag_tree_vectorize)
|
|
||||||
opts->x_flag_tree_loop_vectorize = value;
|
opts->x_flag_tree_loop_vectorize = value;
|
||||||
if (!opts_set->x_flag_tree_slp_vectorize
|
if (!opts_set->x_flag_tree_slp_vectorize)
|
||||||
&& !opts_set->x_flag_tree_vectorize)
|
|
||||||
opts->x_flag_tree_slp_vectorize = value;
|
opts->x_flag_tree_slp_vectorize = value;
|
||||||
if (!opts_set->x_flag_vect_cost_model)
|
if (!opts_set->x_flag_vect_cost_model)
|
||||||
opts->x_flag_vect_cost_model = VECT_COST_MODEL_DYNAMIC;
|
opts->x_flag_vect_cost_model = VECT_COST_MODEL_DYNAMIC;
|
||||||
|
@ -2236,10 +2234,8 @@ common_handle_option (struct gcc_options *opts,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OPT_ftree_vectorize:
|
case OPT_ftree_vectorize:
|
||||||
if (!opts_set->x_flag_tree_loop_vectorize)
|
/* Automatically sets -ftree-loop-vectorize and
|
||||||
opts->x_flag_tree_loop_vectorize = value;
|
-ftree-slp-vectorize. Nothing more to do here. */
|
||||||
if (!opts_set->x_flag_tree_slp_vectorize)
|
|
||||||
opts->x_flag_tree_slp_vectorize = value;
|
|
||||||
break;
|
break;
|
||||||
case OPT_fshow_column:
|
case OPT_fshow_column:
|
||||||
dc->show_column = value;
|
dc->show_column = value;
|
||||||
|
|
Loading…
Reference in New Issue