This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Mined out of comp.std.c...
- From: Richard Henderson <rth at redhat dot com>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org, Jan Hubicka <jh at suse dot cz>
- Date: Thu, 25 Apr 2002 01:11:27 -0700
- Subject: Re: Mined out of comp.std.c...
- References: <20020425065117.GJ26266@codesourcery.com>
On Wed, Apr 24, 2002 at 11:51:17PM -0700, Zack Weinberg wrote:
> More interesting to me is the observation that - since we know the
> arithmetic properties of the target - we could transform
> ((a > b) ? a : b) into the above, if it were a win. What I'm
> wondering is if it is.
It is almost certainly on all 3-address isa's that don't implement
conditional move (sparc, mips3, ppc). Because it's 4 insns for
the sub+sub+shift+and, and 3 for cmp+jmp+move.
r~