This is the mail archive of the gcc@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: Mined out of comp.std.c...


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~


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