Commit 908c55f1 by Richard Biener Committed by Richard Biener

i386.c (ix86_builtin_vectorization_cost): Scale vec_construct cost by vec_stmt_cost.

2015-04-21  Richard Biener  <rguenther@suse.de>

	* config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
	vec_construct cost by vec_stmt_cost.

From-SVN: r222265
parent c4d281b2
2015-04-21 Richard Biener <rguenther@suse.de>
* config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
vec_construct cost by vec_stmt_cost.
2015-04-21 Richard Biener <rguenther@suse.de>
* cfghooks.h (create_basic_block): Replace with two overloads
for RTL and GIMPLE.
(split_block): Likewise.
......
......@@ -46705,7 +46705,7 @@ ix86_builtin_vectorization_cost (enum vect_cost_for_stmt type_of_cost,
case vec_construct:
elements = TYPE_VECTOR_SUBPARTS (vectype);
return elements / 2 + 1;
return ix86_cost->vec_stmt_cost * (elements / 2 + 1);
default:
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