diff options
author | Alan Modra <amodra@gmail.com> | 2015-06-23 10:35:04 +0930 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2015-06-23 10:35:04 +0930 |
commit | 350911e65183b142018003691fd8d2eee479e175 (patch) | |
tree | 341df2ecb89793c16d2d555ad687094c7f9ded14 /gcc/rtlanal.c | |
parent | 6536a0a8759bed9fa7e3b47191c11a7c09254eae (diff) | |
download | gcc-350911e65183b142018003691fd8d2eee479e175.zip gcc-350911e65183b142018003691fd8d2eee479e175.tar.gz gcc-350911e65183b142018003691fd8d2eee479e175.tar.bz2 |
rtlanal.c (commutative_operand_precedence): Correct comments.
* rtlanal.c (commutative_operand_precedence): Correct comments.
* simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
declaration. Return an int. Distinguish REG,REG return from
others.
(struct simplify_plus_minus_op_data): Make local to function.
(simplify_plus_minus): Don't set canonicalized if merely sorting
registers. Avoid packing ops if nothing changes. White space fixes.
From-SVN: r224768
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index d4a9eda..86b3b62 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -3132,17 +3132,16 @@ regno_use_in (unsigned int regno, rtx x) } /* Return a value indicating whether OP, an operand of a commutative - operation, is preferred as the first or second operand. The higher - the value, the stronger the preference for being the first operand. - We use negative values to indicate a preference for the first operand - and positive values for the second operand. */ + operation, is preferred as the first or second operand. The more + positive the value, the stronger the preference for being the first + operand. */ int commutative_operand_precedence (rtx op) { enum rtx_code code = GET_CODE (op); - /* Constants always come the second operand. Prefer "nice" constants. */ + /* Constants always become the second operand. Prefer "nice" constants. */ if (code == CONST_INT) return -8; if (code == CONST_WIDE_INT) |