summaryrefslogtreecommitdiff
path: root/gcc/targhooks.c
diff options
context:
space:
mode:
authormeibf <meibf@138bc75d-0d04-0410-961f-82ee72b054a4>2014-06-06 09:52:51 +0000
committermeibf <meibf@138bc75d-0d04-0410-961f-82ee72b054a4>2014-06-06 09:52:51 +0000
commitc820693e32f3bda22f3d89425e0bdf9b87e9829a (patch)
tree37714d5eb9f39225cb8a2e7bbb4450ac39afcdb5 /gcc/targhooks.c
parent1a11ac90e4c5fa5dad5a8a17c2acfafa82e73d13 (diff)
downloadgcc-c820693e32f3bda22f3d89425e0bdf9b87e9829a.tar.gz
2014-06-06 Bingfeng Mei <bmei@broadcom.com>
* targhooks.c (default_add_stmt_cost): Call target specific hook instead of default one. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211311 138bc75d-0d04-0410-961f-82ee72b054a4
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 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. */