This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] New simplify_associative_operation function
- From: Richard Henderson <rth at redhat dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 17 Aug 2003 11:00:45 -0700
- Subject: Re: [PATCH] New simplify_associative_operation function
- References: <Pine.LNX.4.44.0308162112520.20082-100000@www.eyesopen.com>
On Sat, Aug 16, 2003 at 09:47:22PM -0600, Roger Sayle wrote:
> * simplify-rtx.c (associative_constant_p): New function to test
> whether an RTX expression is an immediate constant.
> (simplify_associative_operation): New function to perform some
> reassociation optimizations of associative binary expressions.
> (simplify_binary_operation): Use simplify_associative_operation
> to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
> Floating point expressions are only reassociated when unsafe
> math optimizations are permitted.
Ok.
r~