[PATCHv3][PR 81376][PING] Remove unnecessary float casts in comparisons

Yuri Gribov tetra2005@gmail.com
Tue Oct 2 14:06:00 GMT 2018


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-pattern-to-remove-useless-float-casts-in-compari.patch
Type: application/x-patch
Size: 7529 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20181002/1b636513/attachment.bin>


More information about the Gcc-patches mailing list