diff options
author | irar <irar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-06 08:41:01 +0000 |
---|---|---|
committer | irar <irar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-06 08:41:01 +0000 |
commit | f031fa031697b65f36bd3d9d3ad4c609577a27be (patch) | |
tree | 11b8037cf34db717be3b5b79cd94c172813054ad /gcc/tree-vect-patterns.c | |
parent | 6da8bb4f936061ba84ed53f363fd9c3c00a1e04a (diff) | |
download | gcc-f031fa031697b65f36bd3d9d3ad4c609577a27be.tar.gz |
* tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
vectype is not NULL.
(vect_pattern_recog_1): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121640 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-patterns.c')
-rw-r--r-- | gcc/tree-vect-patterns.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/tree-vect-patterns.c b/gcc/tree-vect-patterns.c index c9e34e3e419..9fac417d0d0 100644 --- a/gcc/tree-vect-patterns.c +++ b/gcc/tree-vect-patterns.c @@ -386,7 +386,8 @@ vect_recog_widen_mult_pattern (tree last_stmt, /* Check target support */ vectype = get_vectype_for_scalar_type (half_type0); - if (!supportable_widening_operation (WIDEN_MULT_EXPR, last_stmt, vectype, + if (!vectype + || !supportable_widening_operation (WIDEN_MULT_EXPR, last_stmt, vectype, &dummy, &dummy, &dummy_code, &dummy_code)) return NULL; @@ -647,6 +648,9 @@ vect_pattern_recog_1 ( /* Check target support */ pattern_vectype = get_vectype_for_scalar_type (type_in); + if (!pattern_vectype) + return; + optab = optab_for_tree_code (TREE_CODE (pattern_expr), pattern_vectype); vec_mode = TYPE_MODE (pattern_vectype); if (!optab |