]> git.ipfire.org Git - thirdparty/gcc.git/commit
Remove recursion from range_from_dom.
authorAndrew MacLeod <amacleod@redhat.com>
Fri, 15 Jul 2022 13:35:29 +0000 (09:35 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Tue, 19 Jul 2022 22:05:49 +0000 (18:05 -0400)
commitb0cc57cd76f511f29cab233654249817312ec2a6
treec8b6efb6e3bdff95e91cbd6e1ec9bfb0a043c8c9
parentf838d15641d256e21ffc126c3277b290ed743928
Remove recursion from range_from_dom.

Avoid calling range_of_dom recursively by putting all nodes to be
calculated on the worklist, and figure out which kind they are
when removed from the list.

* gimple-range-cache.cc (ranger_cache::resolve_dom): New.
(ranger_cache::range_from_dom): Put all nodes to be calculated
in the worklist and resolve after the dom walk.
* gimple-range-cache.h (resolve_dom): New prototype.
gcc/gimple-range-cache.cc
gcc/gimple-range-cache.h