Re: [PATCHv5][PR 57371] Remove useless floating point casts in comparisons

2017-08-04 Thread Richard Biener
On Sun, Jul 30, 2017 at 9:25 AM, Yury Gribov wrote: > Hi all, > > This is an updated version of patch in > https://gcc.gnu.org/ml/gcc-patches/2017-07/msg00924.html . It prevents > optimization in presense of sNaNs (and qNaNs when comparison operator is > >>= < <=) to preserve FP exceptions. > > I'

[PATCHv5][PR 57371] Remove useless floating point casts in comparisons

2017-07-30 Thread Yury Gribov
Hi all, This is an updated version of patch in https://gcc.gnu.org/ml/gcc-patches/2017-07/msg00924.html . It prevents optimization in presense of sNaNs (and qNaNs when comparison operator is > >= < <=) to preserve FP exceptions. I've fixed some stylistic issues mentioned in previous review.