Re: Make minmax detection more flexible in tree-ssa-phiopt.c

2011-02-24 Thread Jeff Law
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/23/11 14:47, Lu, John wrote: > Hi, > > I'm trying to improve the asm code generated for C code like: > > long f(long a, long b) { > _int64 s; > > s = (((long long) a) + ((long long) b)); > > s = (s > 0x7fffL ? (long) 0x7

Make minmax detection more flexible in tree-ssa-phiopt.c

2011-02-23 Thread Lu, John
Hi, I'm trying to improve the asm code generated for C code like: long f(long a, long b) { _int64 s; s = (((long long) a) + ((long long) b)); s = (s > 0x7fffL ? (long) 0x7fffL : (s <-0x8000L ? (long)-0x8000L : s)); return(