re PR tree-optimization/85475 (Compile time hog w/ -O1 -fpeel-loops)
authorRichard Biener <rguenther@suse.de>
Fri, 20 Apr 2018 10:31:23 +0000 (10:31 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 20 Apr 2018 10:31:23 +0000 (10:31 +0000)
commitb46ebc6c45d7a74ec18a0644f8b4e3c66ea84fb8
tree0a6e7898b15bef90b476597b6234e27d96c2db2b
parent2f1f3ac43828d7c9b8899f23683bf6b88066fc4a
re PR tree-optimization/85475 (Compile time hog w/ -O1 -fpeel-loops)

2018-04-20  Richard Biener <rguenther@suse.de>

PR middle-end/85475
* match.pd ((X * CST) * Y -> (X * Y) * CST): Avoid exponential
complexity by forcing a single use of the multiply operand.

* gcc.dg/torture/pr85475.c: New testcase.

From-SVN: r259519
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr85475.c [new file with mode: 0644]