]> git.ipfire.org Git - thirdparty/gcc.git/commit
Use dominators to reduce cache-flling.
authorAndrew MacLeod <amacleod@redhat.com>
Fri, 3 Dec 2021 16:02:19 +0000 (11:02 -0500)
committerAndrew MacLeod <amacleod@redhat.com>
Mon, 6 Dec 2021 18:27:10 +0000 (13:27 -0500)
commit14dc5b71d7e845be4ac21b16e849d6689df81b67
tree5fbb2fe9eca38e8c1debb1f0909876668d36da30
parented4a5f571bd3a49c495d1b08b42c8c01833061e6
Use dominators to reduce cache-flling.

Before walking the CFG and filling all cache entries, check if the
same information is available in a dominator.

* gimple-range-cache.cc (ranger_cache::fill_block_cache): Check for
a range from dominators before filling the cache.
(ranger_cache::range_from_dom): New.
* gimple-range-cache.h (ranger_cache::range_from_dom): Add prototype.
gcc/gimple-range-cache.cc
gcc/gimple-range-cache.h