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/64454] optimize (x%5)%5


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

--- Comment #11 from Marc Glisse <glisse at gcc dot gnu.org> ---
Author: glisse
Date: Fri May 15 17:34:15 2015
New Revision: 223221

URL: https://gcc.gnu.org/viewcvs?rev=223221&root=gcc&view=rev
Log:
2015-05-15  Marc Glisse  <marc.glisse@inria.fr>

        PR tree-optimization/64454
gcc/
        * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
        (-1 - A -> ~A): Remove unnecessary condition.
gcc/testsuite/
        * gcc.dg/modmod.c: New testcase.


Added:
    trunk/gcc/testsuite/gcc.dg/modmod.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]