]> git.ipfire.org Git - thirdparty/gcc.git/commit
Split return functionality of get_non_stale_global_range.
authorAndrew MacLeod <amacleod@redhat.com>
Fri, 19 Nov 2021 17:59:12 +0000 (12:59 -0500)
committerAndrew MacLeod <amacleod@redhat.com>
Wed, 24 Nov 2021 14:03:07 +0000 (09:03 -0500)
commitd986ff50b4aad62c45d7ac62915e072643ddfca1
tree079d6a4f311580b7dc15272e9c7737ae792b1468
parenta031bb7a585f789df2aed856a57646b8c45d0878
Split return functionality of get_non_stale_global_range.

Get_non_stale_global_range returns true only when there is a cache entry that
is not out of date.  Change it so that it returns true if there was a cache
value, but return the temporal comparison result in an auxiallary flag.

* gimple-range-cache.cc (ranger_cache::get_global_range): Always
return a range, return if it came from the cache or not.
(get_non_stale_global_range): Rename to get_global_range, and return
the temporal state in a flag.
* gimple-range-cache.h (get_non_stale_global_range): Rename and adjust.
* gimple-range.cc (gimple_ranger::range_of_expr): No need to query
get_global_range.
(gimple_ranger::range_of_stmt): Adjust for global cache temporal state
returned in a flag.
gcc/gimple-range-cache.cc
gcc/gimple-range-cache.h
gcc/gimple-range.cc