From: James Greenhalgh Date: Thu, 27 Jul 2017 11:42:17 +0000 (+0000) Subject: [Patch (preapproved)] Guard Copy Header pass on X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0919ce3efe2a0d6a20cb726feabe26dc3503db43;p=gcc.git [Patch (preapproved)] Guard Copy Header pass on While answering a user question on the equivalence of -ftree-loop-vectorize + -ftree-slp-vectorize and -ftree-vectorize I spotted one case which broke the equivalence. pass_ch::process_loop_p was guarded on flag_tree_vectorize, meaning you would get it for -ftree-vectorize, but not for -ftree-loop-vectorize/-ftree-slp-vectorize. This patch fixes that, getting rid of the only use of flag_tree_vectorize in the code base. gcc/ * tree-ssa-loop-ch.c (pass_ch::process_loop_p): Guard on flag_tree_loop_vectorize rather than flag_tree_vectorize. From-SVN: r250619 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ae549e7ed0d..845dd756d53 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-07-27 James Greenhalgh + + * tree-ssa-loop-ch.c (pass_ch::process_loop_p): Guard on + flag_tree_loop_vectorize rather than flag_tree_vectorize. + 2017-07-27 Andreas Krebbel PR target/81534 diff --git a/gcc/tree-ssa-loop-ch.c b/gcc/tree-ssa-loop-ch.c index 86be34a1ac7..14cc6d8d721 100644 --- a/gcc/tree-ssa-loop-ch.c +++ b/gcc/tree-ssa-loop-ch.c @@ -436,7 +436,7 @@ pass_ch::process_loop_p (struct loop *loop) bool pass_ch_vect::process_loop_p (struct loop *loop) { - if (!flag_tree_vectorize && !loop->force_vectorize) + if (!flag_tree_loop_vectorize && !loop->force_vectorize) return false; if (loop->dont_vectorize)