Commit fcea0bbb by Richard Biener Committed by Richard Biener

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
parent 921b13d0
2016-06-10 Richard Biener <rguenther@suse.de> 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 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
to fold the RHS to a constant if possible. to fold the RHS to a constant if possible.
......
...@@ -564,8 +564,6 @@ default_builtin_vectorization_cost (enum vect_cost_for_stmt type_of_cost, ...@@ -564,8 +564,6 @@ default_builtin_vectorization_cost (enum vect_cost_for_stmt type_of_cost,
tree vectype, tree vectype,
int misalign ATTRIBUTE_UNUSED) int misalign ATTRIBUTE_UNUSED)
{ {
unsigned elements;
switch (type_of_cost) switch (type_of_cost)
{ {
case scalar_stmt: case scalar_stmt:
...@@ -589,8 +587,7 @@ default_builtin_vectorization_cost (enum vect_cost_for_stmt type_of_cost, ...@@ -589,8 +587,7 @@ default_builtin_vectorization_cost (enum vect_cost_for_stmt type_of_cost,
return 3; return 3;
case vec_construct: case vec_construct:
elements = TYPE_VECTOR_SUBPARTS (vectype); return TYPE_VECTOR_SUBPARTS (vectype) - 1;
return elements / 2 + 1;
default: default:
gcc_unreachable (); gcc_unreachable ();
......
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