2016-06-10 Richard Biener <rguenther@suse.de>
* targhooks.c (default_builtin_vectorization_cost): Adjust
vec_construct cost.
From-SVN: r237302
+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
tree vectype,
int misalign ATTRIBUTE_UNUSED)
{
- unsigned elements;
-
switch (type_of_cost)
{
case scalar_stmt:
return 3;
case vec_construct:
- elements = TYPE_VECTOR_SUBPARTS (vectype);
- return elements / 2 + 1;
+ return TYPE_VECTOR_SUBPARTS (vectype) - 1;
default:
gcc_unreachable ();