aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKewen Lin <linkw@linux.ibm.com>2020-07-23 05:01:36 -0500
committerKewen Lin <linkw@linux.ibm.com>2020-07-23 07:40:22 -0500
commit2949e0865723e011279a504e3fe913062c8d6e0b (patch)
tree04ee0f9b8172d20e3411f666681706add38f9bd3 /gcc
parentead2be56f0e1d60ffcc519efb33c1ca7b78c23ba (diff)
downloadgcc-2949e0865723e011279a504e3fe913062c8d6e0b.zip
gcc-2949e0865723e011279a504e3fe913062c8d6e0b.tar.gz
gcc-2949e0865723e011279a504e3fe913062c8d6e0b.tar.bz2
rs6000: Rename function adjust_vectorization_cost
This patch is to rename the existing function adjust_vectorization_cost to rs6000_adjust_vect_cost_per_stmt, to avoid some confusion. gcc/ChangeLog: * config/rs6000/rs6000.c (adjust_vectorization_cost): Renamed to ... (rs6000_adjust_vect_cost_per_stmt): ... here. (rs6000_add_stmt_cost): Rename adjust_vectorization_cost to rs6000_adjust_vect_cost_per_stmt.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/rs6000/rs6000.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 141854e..6bea544 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -5120,8 +5120,8 @@ rs6000_init_cost (struct loop *loop_info)
compare + branch or compare + isel instructions. */
static unsigned
-adjust_vectorization_cost (enum vect_cost_for_stmt kind,
- struct _stmt_vec_info *stmt_info)
+rs6000_adjust_vect_cost_per_stmt (enum vect_cost_for_stmt kind,
+ struct _stmt_vec_info *stmt_info)
{
if (kind == scalar_stmt && stmt_info && stmt_info->stmt
&& gimple_code (stmt_info->stmt) == GIMPLE_ASSIGN)
@@ -5149,7 +5149,7 @@ rs6000_add_stmt_cost (class vec_info *vinfo, void *data, int count,
{
int stmt_cost = rs6000_builtin_vectorization_cost (kind, vectype,
misalign);
- stmt_cost += adjust_vectorization_cost (kind, stmt_info);
+ stmt_cost += rs6000_adjust_vect_cost_per_stmt (kind, stmt_info);
/* 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. */