match.pd: combine successive multiplications by constants
authorAlexander Monakov <amonakov@ispras.ru>
Tue, 25 Jul 2017 14:36:03 +0000 (17:36 +0300)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Tue, 25 Jul 2017 14:36:03 +0000 (17:36 +0300)
commit288fe52ed1db0510d16a31a0b4cbc8ae0d4e288f
tree36141591cb946978aedacd0393ff806bc80177f7
parentb771c60914096866b6e8c2fa9b953b471e22708c
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.

From-SVN: r250524
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