Commit 58e5400a by Bingfeng Mei Committed by Bingfeng Mei

targhooks.c (default_add_stmt_cost): Call target specific hook instead of default one.

2014-06-06  Bingfeng Mei  <bmei@broadcom.com>

	* targhooks.c (default_add_stmt_cost): Call target specific
	hook instead of default one.

From-SVN: r211311
parent f185af36
2014-06-06 Bingfeng Mei <bmei@broadcom.com>
* targhooks.c (default_add_stmt_cost): Call target specific
hook instead of default one.
2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com> 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
* ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
......
...@@ -1073,8 +1073,8 @@ default_add_stmt_cost (void *data, int count, enum vect_cost_for_stmt kind, ...@@ -1073,8 +1073,8 @@ default_add_stmt_cost (void *data, int count, enum vect_cost_for_stmt kind,
unsigned retval = 0; unsigned retval = 0;
tree vectype = stmt_info ? stmt_vectype (stmt_info) : NULL_TREE; tree vectype = stmt_info ? stmt_vectype (stmt_info) : NULL_TREE;
int stmt_cost = default_builtin_vectorization_cost (kind, vectype, int stmt_cost = targetm.vectorize.builtin_vectorization_cost (kind, vectype,
misalign); misalign);
/* Statements in an inner loop relative to the loop being /* Statements in an inner loop relative to the loop being
vectorized are weighted more heavily. The value here is vectorized are weighted more heavily. The value here is
arbitrary and could potentially be improved with analysis. */ arbitrary and could potentially be improved with analysis. */
......
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