Remove useless floating point casts in comparisons.
authorYury Gribov <tetra2005@gmail.com>
Fri, 4 Aug 2017 20:29:12 +0000 (20:29 +0000)
committerYury Gribov <ygribov@gcc.gnu.org>
Fri, 4 Aug 2017 20:29:12 +0000 (20:29 +0000)
commitc779bea5b977aa3df19c965c4866c6c20ad258c8
tree1d204f2e5879f51d432b6570c00672fc37d7a27d
parente52341f1613a7589425d6eba31a6d5e0500465bd
Remove useless floating point casts in comparisons.

2017-08-04  Yury Gribov  <tetra2005@gmail.com>

PR tree-optimization/57371

gcc/
* match.pd: New pattern.

gcc/testsuite/
* c-c++-common/pr57371-1.c: New test.
* c-c++-common/pr57371-2.c: New test.
* c-c++-common/pr57371-3.c: New test.
* c-c++-common/pr57371-4.c: New test.
* gcc.dg/pr57371-5.c: New test.

From-SVN: r250877
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr57371-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/pr57371-2.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/pr57371-3.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/pr57371-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr57371-5.c [new file with mode: 0644]