aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBin Cheng <bin.cheng@arm.com>2017-05-11 09:52:52 +0000
committerBin Cheng <amker@gcc.gnu.org>2017-05-11 09:52:52 +0000
commitac5344e0be57c845430e6b4aad97096531536d5c (patch)
treeb5ad6f3bdbc712dfeff6cf7dced8452c0c7674a8 /gcc
parent7a89b97a018b688cf2fdd9f023b81d8a85277648 (diff)
downloadgcc-ac5344e0be57c845430e6b4aad97096531536d5c.zip
gcc-ac5344e0be57c845430e6b4aad97096531536d5c.tar.gz
gcc-ac5344e0be57c845430e6b4aad97096531536d5c.tar.bz2
tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
* tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments. (get_shiftadd_cost): Ditto. From-SVN: r247895
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-ssa-loop-ivopts.c14
2 files changed, 12 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 96c7b3f..4f8a7b3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2017-05-11 Bin Cheng <bin.cheng@arm.com>
+ * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
+ (get_shiftadd_cost): Ditto.
+
+2017-05-11 Bin Cheng <bin.cheng@arm.com>
+
* tree-ssa-address.c: Include header file.
(move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
address.
diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c
index 7e6fc4c..d8032c8 100644
--- a/gcc/tree-ssa-loop-ivopts.c
+++ b/gcc/tree-ssa-loop-ivopts.c
@@ -3108,9 +3108,9 @@ add_candidate_1 (struct ivopts_data *data,
The purpose is to avoid splitting latch edge with a biv increment, thus
creating a jump, possibly confusing other optimization passes and leaving
- less freedom to scheduler. So we allow IP_END_POS only if IP_NORMAL_POS
- is not available (so we do not have a better alternative), or if the latch
- edge is already nonempty. */
+ less freedom to scheduler. So we allow IP_END only if IP_NORMAL is not
+ available (so we do not have a better alternative), or if the latch edge
+ is already nonempty. */
static bool
allow_ip_end_pos_p (struct loop *loop)
@@ -3955,10 +3955,10 @@ adjust_setup_cost (struct ivopts_data *data, unsigned cost,
return cost;
}
- /* Calculate the SPEED or size cost of shiftadd EXPR in MODE. MULT is the
- EXPR operand holding the shift. COST0 and COST1 are the costs for
- calculating the operands of EXPR. Returns true if successful, and returns
- the cost in COST. */
+/* Calculate the SPEED or size cost of shiftadd EXPR in MODE. MULT is the
+ EXPR operand holding the shift. COST0 and COST1 are the costs for
+ calculating the operands of EXPR. Returns true if successful, and returns
+ the cost in COST. */
static bool
get_shiftadd_cost (tree expr, machine_mode mode, comp_cost cost0,