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: Roger Sayle <roger at eyesopen dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 17 Aug 2003 13:14:57 -0600 (MDT)
- Subject: Re: [PATCH] New simplify_associative_operation function
On Sun, 17 Aug 2003, Richard Henderson wrote:
> 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.
Very many thanks. Committed.
Roger
--