This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: teach simplify_rtx to simplify unordered compares
- To: Jan Hubicka <jh at suse dot cz>
- Subject: Re: teach simplify_rtx to simplify unordered compares
- From: Andreas Jaeger <aj at suse dot de>
- Date: 04 Jan 2001 22:05:41 +0100
- Cc: patches at x86-64 dot org, gcc-patches at gcc dot gnu dot org, rth at cygnus dot com
- References: <20010104215211.K1828@atrey.karlin.mff.cuni.cz>
>>>>> Jan Hubicka writes:
> Hi
> The simplify-rtx is not knowind about unordered comparisons. I am now
> emitting them early that effectivly disables any chance to optimize
> out the fp conditionals.
> I am not IEEE expert, but hope that this code does what expected.
> Honza
> Thu Jan 4 21:50:23 MET 2001 Jan Hubicka <jh@suse.cz>
> * simplify-rtx.c (cfc_args): add "unordered" field.
> (check_fold_consts): Set unordered field.
> (simplify_relational_operation): Simplify the unordered
> comparisons.
> *** simplify-rtx.c.old Wed Aug 9 23:00:29 2000
> --- simplify-rtx.c Wed Aug 9 23:38:35 2000
> *************** struct cfc_args
> *** 1676,1681 ****
> --- 1676,1682 ----
> {
> rtx op0, op1; /* Input */
> int equal, op0lt, op1lt; /* Output */
> + int unordered;
> };
> static void
> *************** check_fold_consts (data)
> *** 1685,1692 ****
> --- 1686,1700 ----
> struct cfc_args *args = (struct cfc_args *) data;
> REAL_VALUE_TYPE d0, d1;
> + args->unordered = 1;
> +
This can be removed - or change the condition below.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj