On 9/17/18 6:17 PM, Yuri Gribov wrote:
> Hi all,
> 
> This is a second iteration of patch which gets rid of float casts in
> comparisons when all values of casted integral type are exactly
> representable by the float type
> (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81376). The new version
> addresses issue spotted by Richard in previous version
> https://gcc.gnu.org/ml/gcc-patches/2018-02/msg01119.html
> 
> Bootstrapped and regtested on x64_64.
> 
> -Y
> 
> 
> 0001-Add-pattern-to-remove-useless-float-casts-in-compari.patch
> 
> From 396be5ffa5e6bf919d78fa91885186876bce5461 Mon Sep 17 00:00:00 2001
> From: Yury Gribov <tetra2...@gmail.com>
> Date: Fri, 29 Sep 2017 07:34:54 +0200
> Subject: [PATCH] Add pattern to remove useless float casts in comparison.
> 
> 2018-09-18  Yury Gribov  <tetra2...@gmail.com>
> 
>       PR middle-end/81376
> 
> gcc/
>       * real.c (format_helper::can_represent_integral_type_p): New function
>       * real.h (format_helper::can_represent_integral_type_p): Ditto.
>       * match.pd: New pattern.
> 
> gcc/testsuite/
>       * c-c++-common/pr81376.c: New test.
>       * gcc.target/i386/387-ficom-2.c: Update test.
>       * gcc.target/i386/387-ficom-2.c: Ditto.
OK.  You've got commit privileges, right?

jeff

Reply via email to