From 350911e65183b142018003691fd8d2eee479e175 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 23 Jun 2015 10:35:04 +0930 Subject: 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 --- gcc/rtlanal.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'gcc/rtlanal.c') 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) -- cgit v1.1