re PR rtl-optimization/5263 (a & b & ~a & ~b not optimized)
authorRoger Sayle <roger@eyesopen.com>
Mon, 19 Jan 2004 21:51:06 +0000 (21:51 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Mon, 19 Jan 2004 21:51:06 +0000 (21:51 +0000)
commit9ce79a7a5ee9a5dbf634979dc17534d01459104f
tree13ca67175f8037cdb994d41ba64df008eabc1b44
parent0916f87331e015fa7851354dd96180543f1934d6
re PR rtl-optimization/5263 (a & b & ~a & ~b not optimized)

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.

From-SVN: r76179
gcc/ChangeLog
gcc/rtlanal.c
gcc/simplify-rtx.c