match.pd: reassociate multiplications
authorAlexander Monakov <amonakov@gcc.gnu.org>
Tue, 25 Jul 2017 14:33:39 +0000 (17:33 +0300)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Tue, 25 Jul 2017 14:33:39 +0000 (17:33 +0300)
commitb771c60914096866b6e8c2fa9b953b471e22708c
treedcd6f6ff1120d626198f1b8910da526b1b57b890
parent417ca0117a1a9a8aaf5bc5ca530adfd68cb00399
match.pd: reassociate multiplications

* match.pd ((X * CST) * Y): Reassociate to (X * Y) * CST.
testsuite/
* gcc.dg/tree-ssa/assoc-2.c: New testcase.

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