]> git.ipfire.org Git - thirdparty/gcc.git/commit
Use the current cache when creating inferred ranges.
authorAndrew MacLeod <amacleod@redhat.com>
Mon, 31 Mar 2025 15:18:22 +0000 (11:18 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Mon, 28 Apr 2025 21:17:30 +0000 (17:17 -0400)
commitb37738ed3b6dc731fea7ac7882a903dc47af457f
tree4dfba5bb50ab2aa2156e3a7f01d844751302d6c8
parent9a467c2ceaa680a3b54a7bc20e6bb6c3f8a47004
Use the current cache when creating inferred ranges.

Infer range processing was adjusted to allow a query to be specified,
but during VRP folding, ranger was not providing a query.  This results
in contextual ranges being missed.   Pass the cache in as the query
which provide a read-only query of the current state.

* gimple-range-cache.cc (ranger_cache::apply_inferred_ranges): Pass
'this' as the range-query to the inferred range constructor.
gcc/gimple-range-cache.cc