fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
authorMarek Polacek <polacek@redhat.com>
Mon, 29 Jun 2015 14:17:13 +0000 (14:17 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 29 Jun 2015 14:17:13 +0000 (14:17 +0000)
commitf461569a23508a49b913787cc76ab42bc24146f4
tree455965b67ca0c58d772f8ae71e821ca9badb8147
parentfd7b3ef52aa44a4e6de739e63b2c6a34cc6b00bc
fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...

* fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
* match.pd: ... pattern here.

Co-Authored-By: Marc Glisse <marc.glisse@inria.fr>
From-SVN: r225120
gcc/ChangeLog
gcc/fold-const.c
gcc/match.pd