Simplify X / X, 0 / X and X % X
authorMarc Glisse <marc.glisse@inria.fr>
Sun, 20 Nov 2016 13:42:24 +0000 (14:42 +0100)
committerMarc Glisse <glisse@gcc.gnu.org>
Sun, 20 Nov 2016 13:42:24 +0000 (13:42 +0000)
commit5b7f6ed0b39936a0e29e76a54d94a85bc0787f18
tree9508e5426f49c0d9a37fd9c0c3659aa3cc6dbbd3
parent62a7df9f59c014c272f4216aac02a301a0778fdf
Simplify X / X, 0 / X and X % X

2016-11-20  Marc Glisse  <marc.glisse@inria.fr>

gcc/
* match.pd (0 / X, X / X, X % X): New simplifications.

gcc/testsuite/
* gcc.dg/tree-ssa/divide-5.c: New file.

From-SVN: r242636
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/divide-5.c [new file with mode: 0644]