targhooks.c (default_builtin_vectorization_cost): Adjust vec_construct cost.

2016-06-10  Richard Biener  <rguenther@suse.de>

	* targhooks.c (default_builtin_vectorization_cost): Adjust
	vec_construct cost.

From-SVN: r237302
This commit is contained in:
Richard Biener 2016-06-10 11:45:39 +00:00 committed by Richard Biener
parent 921b13d093
commit fcea0bbbac
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2016-06-10 Richard Biener <rguenther@suse.de>
* targhooks.c (default_builtin_vectorization_cost): Adjust
vec_construct cost.
2016-06-10 Richard Biener <rguenther@suse.de>
* gimple-fold.c (gimple_fold_builtin_memory_op): Make sure

View File

@ -564,8 +564,6 @@ default_builtin_vectorization_cost (enum vect_cost_for_stmt type_of_cost,
tree vectype,
int misalign ATTRIBUTE_UNUSED)
{
unsigned elements;
switch (type_of_cost)
{
case scalar_stmt:
@ -589,8 +587,7 @@ default_builtin_vectorization_cost (enum vect_cost_for_stmt type_of_cost,
return 3;
case vec_construct:
elements = TYPE_VECTOR_SUBPARTS (vectype);
return elements / 2 + 1;
return TYPE_VECTOR_SUBPARTS (vectype) - 1;
default:
gcc_unreachable ();