diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/targhooks.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 971b79af473..2ec7fb90c89 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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> * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target diff --git a/gcc/targhooks.c b/gcc/targhooks.c index dfbd2543086..61d058a539e 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -1073,8 +1073,8 @@ default_add_stmt_cost (void *data, int count, enum vect_cost_for_stmt kind, unsigned retval = 0; tree vectype = stmt_info ? stmt_vectype (stmt_info) : NULL_TREE; - int stmt_cost = default_builtin_vectorization_cost (kind, vectype, - misalign); + int stmt_cost = targetm.vectorize.builtin_vectorization_cost (kind, vectype, + misalign); /* Statements in an inner loop relative to the loop being vectorized are weighted more heavily. The value here is arbitrary and could potentially be improved with analysis. */ |