Fix ranger when called from SCEV.
commite8ae56a7dc46e39a48017bb5159e4dc672ec7fad
authorAndrew MacLeod <amacleod@redhat.com>
Wed, 13 Mar 2024 18:10:41 +0000 (13 14:10 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Tue, 30 Apr 2024 21:19:57 +0000 (30 17:19 -0400)
treee759ec98ea732f7c3dc1e429732382c5c5fdb030
parent56aa8ad7cd91fbc42123f1190d3238e293020085
Fix ranger when called from SCEV.

Do not pre-evaluate PHIs in the cache, and allow fill_block_cache to
be re-entrant.  This allows SCEV to call into ranger with a context
and not produce cycles or loops.

* gimple-range-cache.cc (ranger_cache::get_global_range): Do not
pre-evaluate PHI nodes from the cache.
(ranger_cache::fill_block_cache): Make re-entrant.
gcc/gimple-range-cache.cc