tree-vect-stmts.c (vectorizable_mask_load_store): Check mask vectype.

gcc/

	* tree-vect-stmts.c (vectorizable_mask_load_store): Check
	mask vectype.

From-SVN: r231554
This commit is contained in:
Ilya Enkovich 2015-12-11 10:51:04 +00:00 committed by Ilya Enkovich
parent da33235f37
commit 56e398205a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
* tree-vect-stmts.c (vectorizable_mask_load_store): Check
mask vectype.
2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
* config/i386/i386.c (ix86_get_mask_mode): Use scalar

View File

@ -1780,7 +1780,7 @@ vectorizable_mask_load_store (gimple *stmt, gimple_stmt_iterator *gsi,
if (!mask_vectype)
mask_vectype = get_mask_type_for_scalar_type (TREE_TYPE (vectype));
if (!mask_vectype)
if (!mask_vectype || !VECTOR_BOOLEAN_TYPE_P (mask_vectype))
return false;
if (is_store)