This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New GCC options for loop vectorization


On Fri, 13 Sep 2013, Richard Biener wrote:

> @@ -1691,6 +1695,12 @@ common_handle_option (struct gcc_options
>          opts->x_flag_ipa_reference = false;
>        break;
> 
> +    case OPT_ftree_vectorize:
> +      if (!opts_set->x_flag_tree_loop_vectorize)
> + opts->x_flag_tree_loop_vectorize = value;
> +      if (!opts_set->x_flag_tree_slp_vectorize)
> + opts->x_flag_tree_slp_vectorize = value;
> +      break;
> 
> doesn't look obviously correct.  Does that handle

It looks right to me.  The general principle is that the more specific 
option takes precedence over the less specific one, whatever the order on 
the command line.

>   -ftree-vectorize -fno-tree-loop-vectorize -ftree-vectorize

Should mean -ftree-slp-vectorize.

>   -ftree-loop-vectorize -fno-tree-vectorize

Should mean -ftree-loop-vectorize.

>   -ftree-slp-vectorize -fno-tree-vectorize

Should mean -ftree-slp-vectorize.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]