tree-optimization/97623 - limit PRE hoist insertion
authorRichard Biener <rguenther@suse.de>
Tue, 3 Nov 2020 14:03:41 +0000 (15:03 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 3 Nov 2020 15:23:06 +0000 (16:23 +0100)
commitc5b49c3e092c0de5cd684b0acd244129dfaae324
tree26c53d09691a9fff15eff1e8e04159df25b925b1
parentd0d8a1658054258baae87b445678c1c0c08d9455
tree-optimization/97623 - limit PRE hoist insertion

This limits insert iteration caused by PRE insertions generating
hoist insertion opportunities and vice versa.  The patch limits
the hoist insertion iterations to three by default.

2020-11-03  Richard Biener  <rguenther@suse.de>

PR tree-optimization/97623
* params.opt (-param=max-pre-hoist-insert-iterations): New.
* doc/invoke.texi (max-pre-hoist-insert-iterations): Document.
* tree-ssa-pre.c (insert): Do at most max-pre-hoist-insert-iterations
hoist insert iterations.
gcc/doc/invoke.texi
gcc/params.opt
gcc/tree-ssa-pre.c