diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2021-05-07 12:03:01 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2021-05-07 15:01:35 -0400 |
commit | 14b0f37a644d7b59e1737fb275ec4fff044972a8 (patch) | |
tree | 82f00813ce65dafa682bc3f092f8e599af64968c /gcc/gimple-range-cache.h | |
parent | a7943ea96d6a076a06eb06bd71a2656e682b8a78 (diff) | |
download | gcc-14b0f37a644d7b59e1737fb275ec4fff044972a8.zip gcc-14b0f37a644d7b59e1737fb275ec4fff044972a8.tar.gz gcc-14b0f37a644d7b59e1737fb275ec4fff044972a8.tar.bz2 |
Clean up and virtualize the on-entry cache interface.
Cleanup/Virtualize the ssa_block_range class, and implement the current
vector approach as a derived class.
Allow memory allocation from the irange allocator obstack for easy freeing.
* gimple-range-cache.cc (ssa_block_ranges): Virtualize.
(sbr_vector): Renamed from ssa_block_cache.
(sbr_vector::sbr_vector): Allocate from obstack abd initialize.
(ssa_block_ranges::~ssa_block_ranges): Remove.
(sbr_vector::set_bb_range): Use varying and undefined cached values.
(ssa_block_ranges::set_bb_varying): Remove.
(sbr_vector::get_bb_range): Adjust assert.
(sbr_vector::bb_range_p): Adjust assert.
(~block_range_cache): No freeing loop required.
(block_range_cache::get_block_ranges): Remove.
(block_range_cache::set_bb_range): Inline get_block_ranges.
(block_range_cache::set_bb_varying): Remove.
* gimple-range-cache.h (set_bb_varying): Remove prototype.
* value-range.h (irange_allocator::get_memory): New.
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 986a68a..15e6d0c 100644 --- a/gcc/gimple-range-cache.h +++ b/gcc/gimple-range-cache.h @@ -51,7 +51,6 @@ public: ~block_range_cache (); void set_bb_range (tree name, const basic_block bb, const irange &r); - void set_bb_varying (tree name, const basic_block bb); bool get_bb_range (irange &r, tree name, const basic_block bb); bool bb_range_p (tree name, const basic_block bb); |