From: Ilya Enkovich Date: Fri, 11 Dec 2015 10:51:04 +0000 (+0000) Subject: tree-vect-stmts.c (vectorizable_mask_load_store): Check mask vectype. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=56e398205a1e973a3c6e438a14073a83288810f9;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bc3f17201d0..685f6475a7d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-12-11 Ilya Enkovich + + * tree-vect-stmts.c (vectorizable_mask_load_store): Check + mask vectype. + 2015-12-11 Ilya Enkovich * config/i386/i386.c (ix86_get_mask_mode): Use scalar diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index 5377d1553c6..abcd9a4fc32 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -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)