Split rhs checking out of vectorizable_{,mask_load_}store
commitf4ca8ae83375a3472281dba061a800fbfe412f5f
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Jan 2018 21:47:11 +0000 (3 21:47 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Jan 2018 21:47:11 +0000 (3 21:47 +0000)
tree8d66cf57fd44dfbd34c07dda8a6236814461b96d
parent228c3360f04c2e6e2276bb3b7136d167c0fe8f54
Split rhs checking out of vectorizable_{,mask_load_}store

This patch splits out the rhs checking code that's common to both
vectorizable_mask_load_store and vectorizable_store.

2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
* tree-vect-stmts.c (vect_check_store_rhs): New function,
split out from...
(vectorizable_mask_load_store): ...here.
(vectorizable_store): ...and here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256213 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-vect-stmts.c