re PR tree-optimization/46590 (long compile time with -O2 and many loops)
authorRichard Biener <rguenther@suse.de>
Mon, 1 Apr 2019 11:36:25 +0000 (11:36 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 1 Apr 2019 11:36:25 +0000 (11:36 +0000)
commite37240b0b556c2bcdf94b0a84ff798cd4bd5a316
treec0f105af1a80974454d81ff0d3c560467a115568
parent90f1430589e2f3efa8136346615fc08edfd936f3
re PR tree-optimization/46590 (long compile time with -O2 and many loops)

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

PR tree-optimization/46590
* domwalk.h (dom_walker::dom_walker): Consolidate constructors.
(dom_walker::m_reachability): Add in place of...
(dom_walker::m_skip_unreachable_blocks): ...this.
* domwalk.c (dom_walker::dom_walker): Consoliate constructors.
Move complex initialization ...
(dom_walker::walk): Here.  Especially compute m_bb_to_rpo
lazily and initialize edge flags on each invocation.
(dom_walker::bb_reachable): Use m_reachability.

From-SVN: r270055
gcc/ChangeLog
gcc/domwalk.c
gcc/domwalk.h