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/loop-init.c | |
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/loop-init.c')
0 files changed, 0 insertions, 0 deletions