diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2021-11-19 12:59:12 -0500 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2021-11-24 09:03:07 -0500 |
commit | d986ff50b4aad62c45d7ac62915e072643ddfca1 (patch) | |
tree | 079d6a4f311580b7dc15272e9c7737ae792b1468 /gcc/gimple-range-cache.h | |
parent | a031bb7a585f789df2aed856a57646b8c45d0878 (diff) | |
download | gcc-d986ff50b4aad62c45d7ac62915e072643ddfca1.zip gcc-d986ff50b4aad62c45d7ac62915e072643ddfca1.tar.gz gcc-d986ff50b4aad62c45d7ac62915e072643ddfca1.tar.bz2 |
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.
Diffstat (limited to 'gcc/gimple-range-cache.h')
-rw-r--r-- | gcc/gimple-range-cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-range-cache.h b/gcc/gimple-range-cache.h index 49c13d1..eb7a875 100644 --- a/gcc/gimple-range-cache.h +++ b/gcc/gimple-range-cache.h @@ -100,7 +100,7 @@ public: bool block_range (irange &r, basic_block bb, tree name, bool calc = true); bool get_global_range (irange &r, tree name) const; - bool get_non_stale_global_range (irange &r, tree name); + bool get_global_range (irange &r, tree name, bool ¤t_p); void set_global_range (tree name, const irange &r); void propagate_updated_value (tree name, basic_block bb); |