Split mask checking out of vectorizable_mask_load_store
authorRichard Sandiford <richard.sandiford@linaro.org>
Wed, 3 Jan 2018 21:47:03 +0000 (21:47 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 3 Jan 2018 21:47:03 +0000 (21:47 +0000)
commitaaeefd88f464de0a78fa66c8b5e2755babf0d47f
tree8617ce6e9f567dd6cf5ae93bbda7f1e578c38f24
parent9ce4345afba69ff793ff4df992fc57ec29a92d93
Split mask checking out of vectorizable_mask_load_store

This patch splits the mask argument checking out of
vectorizable_mask_load_store, so that a later patch can use it in both
vectorizable_load and vectorizable_store.  It also adds dump messages
for false returns.  This is mostly useful for the TYPE_VECTOR_SUBPARTS
check, which can fail if pattern recognition didn't convert the mask
properly.

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

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

From-SVN: r256212
gcc/ChangeLog
gcc/tree-vect-stmts.c