aboutsummaryrefslogtreecommitdiff
path: root/gcc/targhooks.c
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 /gcc/targhooks.c
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
Diffstat (limited to 'gcc/targhooks.c')
-rw-r--r--gcc/targhooks.c4
1 files changed, 2 insertions, 2 deletions
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. */