Commit 058e4c71 by Pawel Kupidura Committed by Richard Sandiford

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
parent 69b23ad6
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> 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
* config/arm/neon.md (neon_vget_lanev2di): Handle big-endian * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
......
...@@ -7091,15 +7091,9 @@ aarch64_add_stmt_cost (void *data, int count, enum vect_cost_for_stmt kind, ...@@ -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 /* Statements in an inner loop relative to the loop being
vectorized are weighted more heavily. The value here is 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)) if (where == vect_body && stmt_info && stmt_in_inner_loop_p (stmt_info))
{ count *= 50; /* FIXME */
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;
}
retval = (unsigned) (count * stmt_cost); retval = (unsigned) (count * stmt_cost);
cost[where] += retval; cost[where] += retval;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment