From 2949e0865723e011279a504e3fe913062c8d6e0b Mon Sep 17 00:00:00 2001 From: Kewen Lin Date: Thu, 23 Jul 2020 05:01:36 -0500 Subject: [PATCH] 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. --- gcc/config/rs6000/rs6000.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 141854e5d82..6bea544d26a 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. */ -- 2.30.2