This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Some simplify_binary_operation improvements.
- From: Geoff Keating <geoffk at geoffk dot org>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 11 Aug 2003 10:36:42 -0700
- Subject: Re: [PATCH] Some simplify_binary_operation improvements.
- References: <Pine.LNX.4.44.0308101657010.28411-100000@www.eyesopen.com>
Roger Sayle <roger@eyesopen.com> writes:
> The following patch cleans up simplify_binary_operation, by replacing
> calls to gen_rtx_* with calls to the preferred simplify_gen_unary and
> simplify_gen_binary. These changes allow some complex RTL expressions
> to be simplified even further.
>
> The following patch has been tested on i686-pc-linux-gnu with a full
> "make bootstrap", all languages except treelang, and regression tested
> with a top-level "make -k check" with no new failures.
>
> Ok for mainline?
>
>
> 2003-08-10 Roger Sayle <roger@eyesopen.com>
>
> * simplify-rtx.c (simplify_binary_operation): Replace calls to
> gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
> and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
> gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
This is OK.
--
- Geoffrey Keating <geoffk@geoffk.org>