tree-optimization/97623 - Avoid PRE hoist insertion iteration
authorRichard Biener <rguenther@suse.de>
Wed, 11 Nov 2020 10:51:59 +0000 (11:51 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 11 Nov 2020 11:51:40 +0000 (12:51 +0100)
commitbd87cc14ebdb6789e067fb1828d5808407c308b3
treeb8a9996427f6fef9253105e725212f444c7bb178
parent46c705e70e078f6a1920d92e49042125d5e18495
tree-optimization/97623 - Avoid PRE hoist insertion iteration

The recent previous change in this area limited hoist insertion
iteration via a param but the following is IMHO better since
we are not really interested in PRE opportunities exposed by
hoisting but only the other way around.  So this moves hoist
insertion after PRE iteration finished and removes hoist
insertion iteration alltogether.

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

PR tree-optimization/97623
* params.opt (-param=max-pre-hoist-insert-iterations): Remove
again.
* doc/invoke.texi (max-pre-hoist-insert-iterations): Likewise.
* tree-ssa-pre.c (insert): Move hoist insertion after PRE
insertion iteration and do not iterate it.

* gcc.dg/tree-ssa/ssa-hoist-3.c: Adjust.
* gcc.dg/tree-ssa/ssa-hoist-7.c: Likewise.
* gcc.dg/tree-ssa/ssa-pre-30.c: Likewise.
gcc/doc/invoke.texi
gcc/params.opt
gcc/testsuite/gcc.dg/tree-ssa/ssa-hoist-3.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-hoist-7.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-30.c
gcc/tree-ssa-pre.c