This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA] three simple combine cleanups, 2/3: use simplify_const_binary_operation
- From: Roger Sayle <roger at eyesopen dot com>
- To: Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 19 Dec 2005 11:53:02 -0700 (MST)
- Subject: Re: [RFA] three simple combine cleanups, 2/3: use simplify_const_binary_operation
On Mon, 19 Dec 2005, Paolo Bonzini wrote:
> This patch uses simplify_const_binary_operation in a couple
> of places where, according to the surrounding source code or
> comments, the transformations are meant to reassociate
> operations so that they have constant operands.
>
> This should be more efficient, and safer if these transforms are
> ever moved to simplify_binary_operation_1.
>
> 2005-12-18 Paolo Bonzini <bonzini@gnu.org>
>
> * combine.c (simplify_shift_const): Use, whenever applicable,
> simplify_const_binary_operation.
This is OK for mainline.
Thanks,
Roger
--