2018-04-20 Richard Biener <rguenther@suse.de>
commitf359ebf1c4e74ebdb3be9ec639814b5a95a49525
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Apr 2018 10:31:23 +0000 (20 10:31 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Apr 2018 10:31:23 +0000 (20 10:31 +0000)
tree0a6e7898b15bef90b476597b6234e27d96c2db2b
parentf901a13d5e953ca20fa7c76bc0f0150138b5bca7
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259519 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr85475.c [new file with mode: 0644]