This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/57371] Simplify (double)i != 0


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57371

--- Comment #5 from Yury Gribov <ygribov at gcc dot gnu.org> ---
Author: ygribov
Date: Fri Aug  4 20:29:12 2017
New Revision: 250877

URL: https://gcc.gnu.org/viewcvs?rev=250877&root=gcc&view=rev
Log:
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.


Added:
    trunk/gcc/testsuite/c-c++-common/pr57371-1.c
    trunk/gcc/testsuite/c-c++-common/pr57371-2.c
    trunk/gcc/testsuite/c-c++-common/pr57371-3.c
    trunk/gcc/testsuite/c-c++-common/pr57371-4.c
    trunk/gcc/testsuite/gcc.dg/pr57371-5.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/match.pd
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]