re PR tree-optimization/64454 (optimize (x%5)%5)
authorMarc Glisse <marc.glisse@inria.fr>
Fri, 15 May 2015 17:34:15 +0000 (19:34 +0200)
committerMarc Glisse <glisse@gcc.gnu.org>
Fri, 15 May 2015 17:34:15 +0000 (17:34 +0000)
commitbc4315fbb0075e29d9a246bf73ff4c56ccf8fa6b
treec27c4d0fff690de1f31c090ece7b64e6f9c3ce13
parentff935d0c3d1ace1b6d7acbd24d414e0d8977103e
re PR tree-optimization/64454 (optimize (x%5)%5)

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.

From-SVN: r223221
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/modmod.c [new file with mode: 0644]