re PR tree-optimization/87287 (Move signed (x % pow2) == 0 optimization to gimple)
authorJakub Jelinek <jakub@redhat.com>
Thu, 13 Sep 2018 07:36:50 +0000 (09:36 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 13 Sep 2018 07:36:50 +0000 (09:36 +0200)
commit392750c53e09334eb509aae4db52a4db18c413be
tree238326fc1d7c8ee912fbf715e291e60aa255bf65
parent8a90f559d727a993b5a3c5c9c5d5cd5520a7503a
re PR tree-optimization/87287 (Move signed (x % pow2) == 0 optimization to gimple)

PR tree-optimization/87287
* fold-const.c (fold_binary_loc) <case EQ_EXPR>: Move signed modulo
X % C == 0 to X % (unsigned) C == 0 optimization to ...
* match.pd (X % C == 0): ... here.  New optimization.

* gcc.dg/tree-ssa/pr87287.c: New test.

From-SVN: r264260
gcc/ChangeLog
gcc/fold-const.c
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr87287.c [new file with mode: 0644]