diff options
author | Pawel Kupidura <pawel.kupidura@arm.com> | 2015-08-04 13:44:41 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-08-04 13:44:41 +0000 |
commit | 058e4c71c29989185bf59888d85d536eed50013d (patch) | |
tree | bd0edb74351d1780b9d4ef170899bd8b1bdf60a7 /gcc | |
parent | 69b23ad67f594ad866b833c827bec1f5f5cdce8d (diff) | |
download | gcc-058e4c71c29989185bf59888d85d536eed50013d.zip gcc-058e4c71c29989185bf59888d85d536eed50013d.tar.gz gcc-058e4c71c29989185bf59888d85d536eed50013d.tar.bz2 |
aarch64.c: Change inner loop statement cost to be consistent with other targets.
gcc/
2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
* config/aarch64/aarch64.c: Change inner loop statement cost
to be consistent with other targets.
From-SVN: r226575
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/aarch64/aarch64.c | 10 |
2 files changed, 7 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 49751a7..cd017f4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com> + + * config/aarch64/aarch64.c: Change inner loop statement cost + to be consistent with other targets. + 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org> * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index ad6c330..a91fda8 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -7091,15 +7091,9 @@ aarch64_add_stmt_cost (void *data, int count, enum vect_cost_for_stmt kind, /* Statements in an inner loop relative to the loop being vectorized are weighted more heavily. The value here is - a function (linear for now) of the loop nest level. */ + arbitrary and could potentially be improved with analysis. */ if (where == vect_body && stmt_info && stmt_in_inner_loop_p (stmt_info)) - { - loop_vec_info loop_info = STMT_VINFO_LOOP_VINFO (stmt_info); - struct loop *loop = LOOP_VINFO_LOOP (loop_info); - unsigned nest_level = loop_depth (loop); - - count *= nest_level; - } + count *= 50; /* FIXME */ retval = (unsigned) (count * stmt_cost); cost[where] += retval; |