This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Some simplify_binary_operation improvements.


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]