re PR tree-optimization/88597 (Compile time hog w/ -O1 -fpeel-loops)
authorRichard Biener <rguenther@suse.de>
Fri, 1 Feb 2019 13:41:43 +0000 (13:41 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 1 Feb 2019 13:41:43 +0000 (13:41 +0000)
commit577d65881ef0f90c790093a7e05cc28a14a45a26
tree35bb180499ae6295918735a81458aa2d587cf826
parent61a8637c8893a25282e844ec217c31df8ad3b6e9
re PR tree-optimization/88597 (Compile time hog w/ -O1 -fpeel-loops)

2019-02-01  Richard Biener  <rguenther@suse.de>

PR middle-end/88597
* tree-scalar-evolution.c (analyze_scalar_evolution): Set up
the instantiate cache.
(instantiate_scev_binary): Elide second operand procesing
if equal to the first.
* tree-chrec.c (chrec_contains_symbols): Add visited set.
(chrec_contains_undetermined): Likewise.
(tree_contains_chrecs): Likewise.

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

From-SVN: r268449
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr88597.c [new file with mode: 0644]
gcc/tree-chrec.c
gcc/tree-scalar-evolution.c