((X /[ex] A) +- B) * A --> X +- A * B
authorMarc Glisse <marc.glisse@inria.fr>
Tue, 2 Oct 2018 15:02:13 +0000 (17:02 +0200)
committerMarc Glisse <glisse@gcc.gnu.org>
Tue, 2 Oct 2018 15:02:13 +0000 (15:02 +0000)
commit0036218b1093a36a67d7c04834e5c0383eda6efa
tree9fe2a35a3fd203591cde457d80b75079e7e0e492
parent86920074bfc4f6319edce71b7a11e49417599f0c
((X /[ex] A) +- B) * A --> X +- A * B

2018-10-02  Marc Glisse  <marc.glisse@inria.fr>

gcc/
* match.pd (((X /[ex] A) +- B) * A): New transformation.

gcc/testsuite/
* gcc.dg/tree-ssa/muldiv-1.c: New file.
* gcc.dg/tree-ssa/muldiv-2.c: Likewise.

From-SVN: r264792
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/muldiv-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/muldiv-2.c [new file with mode: 0644]