------- Comment #2 from ubizjak at gmail dot com 2007-10-12 06:25 -------
I'm testing this patch:
--cut here--
Index: tree-vect-transform.c
===================================================================
--- tree-vect-transform.c (revision 129251)
+++ tree-vect-transform.c (working copy)
@@ -3016,10 +3016,14 @@ vectorizable_call (tree stmt, block_stmt
return false;
vectype_in = get_vectype_for_scalar_type (rhs_type);
+ if (!vectype_in)
+ return false;
nunits_in = TYPE_VECTOR_SUBPARTS (vectype_in);
lhs_type = TREE_TYPE (GIMPLE_STMT_OPERAND (stmt, 0));
vectype_out = get_vectype_for_scalar_type (lhs_type);
+ if (!vectype_out)
+ return false;
nunits_out = TYPE_VECTOR_SUBPARTS (vectype_out);
/* FORNOW */
@@ -3804,6 +3808,8 @@ vectorizable_operation (tree stmt, block
scalar_dest = GIMPLE_STMT_OPERAND (stmt, 0);
vectype_out = get_vectype_for_scalar_type (TREE_TYPE (scalar_dest));
+ if (!vectype_out)
+ return false;
nunits_out = TYPE_VECTOR_SUBPARTS (vectype_out);
if (nunits_out != nunits_in)
return false;
--cut here--
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33742