diff options
author | Bingfeng Mei <bmei@broadcom.com> | 2014-06-06 09:52:51 +0000 |
---|---|---|
committer | Bingfeng Mei <meibf@gcc.gnu.org> | 2014-06-06 09:52:51 +0000 |
commit | 58e5400aec390eb40c272da98d195391ee30b6f0 (patch) | |
tree | 37714d5eb9f39225cb8a2e7bbb4450ac39afcdb5 | |
parent | f185af3614d9328d0e1808638d050a0c101e4dd8 (diff) | |
download | gcc-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/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 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. */ |