[Patch (preapproved)] Guard Copy Header pass on
authorJames Greenhalgh <james.greenhalgh@arm.com>
Thu, 27 Jul 2017 11:42:17 +0000 (11:42 +0000)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Thu, 27 Jul 2017 11:42:17 +0000 (11:42 +0000)
commit0919ce3efe2a0d6a20cb726feabe26dc3503db43
treeabe762c29c8a13c910c8341c09fb0ea4cdf45529
parent58814c7630eccb63cd24d198cfda2e8a268faa7e
[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
gcc/ChangeLog
gcc/tree-ssa-loop-ch.c