aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBingfeng Mei <bmei@broadcom.com>2014-06-06 09:52:51 +0000
committerBingfeng Mei <meibf@gcc.gnu.org>2014-06-06 09:52:51 +0000
commit58e5400aec390eb40c272da98d195391ee30b6f0 (patch)
tree37714d5eb9f39225cb8a2e7bbb4450ac39afcdb5
parentf185af3614d9328d0e1808638d050a0c101e4dd8 (diff)
downloadgcc-58e5400aec390eb40c272da98d195391ee30b6f0.zip
gcc-58e5400aec390eb40c272da98d195391ee30b6f0.tar.gz
gcc-58e5400aec390eb40c272da98d195391ee30b6f0.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/targhooks.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 971b79a..2ec7fb9 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 dfbd254..61d058a 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. */