diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2021-05-25 14:34:06 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2021-05-25 19:28:04 -0400 |
commit | 10b286ce335cca135a45a92581b28146f3e3209b (patch) | |
tree | 2356e23c0318dd35fee1158ceab4dfb2d1b4112f /gcc/gimple-range-cache.h | |
parent | c21644704160710a17d1ea6c1cd212e079cd5e36 (diff) | |
download | gcc-10b286ce335cca135a45a92581b28146f3e3209b.zip gcc-10b286ce335cca135a45a92581b28146f3e3209b.tar.gz gcc-10b286ce335cca135a45a92581b28146f3e3209b.tar.bz2 |
Unify temporal cache with gori dependencies.
Move the temporal cache to strictly be a timestamp, and query GORI for
the dependencies rather than trying to register and maintain them.
* gimple-range-cache.cc (struct range_timestamp): Delete.
(class temporal_cache): Adjust.
(temporal_cache::get_timestamp): Delete.
(temporal_cache::set_dependency): Delete.
(temporal_cache::temporal_value): Adjust.
(temporal_cache::current_p): Take dependencies as params.
(temporal_cache::set_timestamp): Adjust.
(temporal_cache::set_always_current): Adjust.
(ranger_cache::get_non_stale_global_range): Adjust.
(ranger_cache::register_dependency): Delete.
* gimple-range-cache.h (class range_cache): Adjust.
Diffstat (limited to 'gcc/gimple-range-cache.h')
-rw-r--r-- | gcc/gimple-range-cache.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/gimple-range-cache.h b/gcc/gimple-range-cache.h index 15e6d0c..fe781e0 100644 --- a/gcc/gimple-range-cache.h +++ b/gcc/gimple-range-cache.h @@ -98,7 +98,6 @@ public: bool get_global_range (irange &r, tree name) const; bool get_non_stale_global_range (irange &r, tree name); void set_global_range (tree name, const irange &r); - void register_dependency (tree name, tree dep); non_null_ref m_non_null; |