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 #6 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Author: aldyh
Date: Wed Sep 13 16:29:49 2017
New Revision: 252296

URL: https://gcc.gnu.org/viewcvs?rev=252296&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:
    branches/range-gen2/gcc/testsuite/c-c++-common/pr57371-1.c
    branches/range-gen2/gcc/testsuite/c-c++-common/pr57371-2.c
    branches/range-gen2/gcc/testsuite/c-c++-common/pr57371-3.c
    branches/range-gen2/gcc/testsuite/c-c++-common/pr57371-4.c
    branches/range-gen2/gcc/testsuite/gcc.dg/pr57371-5.c
Modified:
    branches/range-gen2/gcc/ChangeLog
    branches/range-gen2/gcc/match.pd
    branches/range-gen2/gcc/testsuite/ChangeLog

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