Re: [PATCH v2 1/2] match.pd: reassociate multiplications

2017-07-25 Thread Richard Biener
On Fri, Jul 21, 2017 at 5:55 PM, Alexander Monakov wrote: > Previous revision here: > https://gcc.gnu.org/ml/gcc-patches/2017-07/msg00889.html > > Reassociate (X * CST) * Y to (X * Y) * CST, this pushes constants in > multiplication chains to outermost factors, where they can be combined. > > Cha

[PATCH v2 1/2] match.pd: reassociate multiplications

2017-07-21 Thread Alexander Monakov
Previous revision here: https://gcc.gnu.org/ml/gcc-patches/2017-07/msg00889.html Reassociate (X * CST) * Y to (X * Y) * CST, this pushes constants in multiplication chains to outermost factors, where they can be combined. Changed in this revision: - remove !TYPE_OVERFLOW_SANITIZED and !TYPE_SATUR