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-Tag: upstream/12.2.0~50035 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=56e398205a1e973a3c6e438a14073a83288810f9;p=platform%2Fupstream%2Fgcc.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 bc3f172..685f647 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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 modes for 32 and 16 byte boolean vectors when possible. diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index 5377d15..abcd9a4 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)