match.pd: combine successive multiplications by constants
commite4f4818089794d5b37332d76570b5636f6c2f255
authoramonakov <amonakov@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Jul 2017 14:36:03 +0000 (25 14:36 +0000)
committeramonakov <amonakov@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Jul 2017 14:36:03 +0000 (25 14:36 +0000)
tree36141591cb946978aedacd0393ff806bc80177f7
parent6b7eaf05dbaf608e3c978a33f9661609ca429c6e
match.pd: combine successive multiplications by constants

* match.pd ((X * CST1) * CST2): Simplify to X * (CST1 * CST2).
testsuite:
* gcc.dg/tree-ssa/assoc-2.c: Enhance.
* gcc.dg/tree-ssa/slsr-4.c: Adjust.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250524 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/assoc-2.c
gcc/testsuite/gcc.dg/tree-ssa/slsr-4.c