PR optimization/5263
commitefbc81280b2fcb1c99af3a778798ac2259a0b478
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jan 2004 21:51:06 +0000 (19 21:51 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jan 2004 21:51:06 +0000 (19 21:51 +0000)
tree13ca67175f8037cdb994d41ba64df008eabc1b44
parent31f8ef3c028275b1fedc783dee811f320501b3a7
PR optimization/5263
* simplify-rtx.c (associative_constant_p): Delete.
(simplify_associative_operation): Rewrite to linearize terms, and
attempt to simplify new term against both left and right subterms.
(simplify_binary_operation): Call swap_commutative_operands_p on
op0 and op1, not trueop0 and trueop1.  Move the initialization of
trueop0 and trueop1 down to where first needed.
(simplify_relational_operation): Likewise.
* rtlanal.c (commutative_operand_precedence): Also order constant
operands using avoid_constant_pool_reference.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76179 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/rtlanal.c
gcc/simplify-rtx.c