This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: validate_replace_rtx_1 fix
- To: jh at suse dot cz
- Subject: Re: validate_replace_rtx_1 fix
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Thu, 17 May 01 15:06:30 EDT
- Cc: gcc-patches at gcc dot gnu dot org
Thu May 17 19:53:30 CEST 2001 Jan Hubicka <jh@suse.cz>
* recog.c (validate_replace_rtx_1): Properly canonicalize expression
* rtl.h (swap_commutative_operands_p): Declare.
* rtlanal.c (swap_commutative_operands_p): New.
(operand_preference): New static function.
Once testing completes, OK, except:
+ /* Return the preference of OP to be the first operand of commutative
+ operation. Lower the value, the better it is as the second operand. */
/* 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. */