Commit 7569a6cc by Richard Guenther Committed by Richard Biener

tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.

2009-04-28  Richard Guenther  <rguenther@suse.de>

	* tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix
	type error.

From-SVN: r146888
parent ead204d9
2009-04-28 Richard Guenther <rguenther@suse.de>
* tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix
type error.
2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
* config/arm/arm-cores.def: Add support for arm1156t2f-s. * config/arm/arm-cores.def: Add support for arm1156t2f-s.
......
...@@ -890,6 +890,9 @@ vect_get_vec_def_for_operand (tree op, gimple stmt, tree *scalar_def) ...@@ -890,6 +890,9 @@ vect_get_vec_def_for_operand (tree op, gimple stmt, tree *scalar_def)
/* Case 1: operand is a constant. */ /* Case 1: operand is a constant. */
case vect_constant_def: case vect_constant_def:
{ {
vector_type = get_vectype_for_scalar_type (TREE_TYPE (op));
gcc_assert (vector_type);
if (scalar_def) if (scalar_def)
*scalar_def = op; *scalar_def = op;
...@@ -901,8 +904,8 @@ vect_get_vec_def_for_operand (tree op, gimple stmt, tree *scalar_def) ...@@ -901,8 +904,8 @@ vect_get_vec_def_for_operand (tree op, gimple stmt, tree *scalar_def)
{ {
t = tree_cons (NULL_TREE, op, t); t = tree_cons (NULL_TREE, op, t);
} }
vec_cst = build_vector (vectype, t); vec_cst = build_vector (vector_type, t);
return vect_init_vector (stmt, vec_cst, vectype, NULL); return vect_init_vector (stmt, vec_cst, vector_type, NULL);
} }
/* Case 2: operand is defined outside the loop - loop invariant. */ /* Case 2: operand is defined outside the loop - loop invariant. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment