This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Honor FLOAT_STORE_FLAG_VALUE in simplify_rtx
- 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: 16 Jul 2003 11:23:13 -0700
- Subject: Re: [PATCH] Honor FLOAT_STORE_FLAG_VALUE in simplify_rtx
- References: <Pine.LNX.4.44.0307160909180.13256-100000@www.eyesopen.com>
Roger Sayle <roger@eyesopen.com> writes:
> The following patch is another small step towards unification of
> GCC's RTL simplification routines. This change adds support for
> FLOAT_STORE_FLAG_VALUE to both simplify_rtx and simplify_replace_rtx.
> It also adds the simplification of (lo_sum (high X) X) as X to
> simplify_rtx. These changes should allow simplification of CSE,
> combine and the inliner by reusing simplify_rtx without loss of
> functionality.
>
> The following patch has been tested on both i686-pc-linux-gnu and
> alphaev67-dec-osf5.1 (which defines FLOAT_STORE_FLAG_VALUE) with a
> full "make bootstrap", all languages except treelang (on both) and
> ada (on Tru64), and then regression tested with a top-level "make
> -k check" with no new failures.
>
> Ok for mainline?
OK.
>
> 2003-07-16 Roger Sayle <roger@eyesopen.com>
>
> * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
> to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
> (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
--
- Geoffrey Keating <geoffk@geoffk.org>