diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2020-11-02 13:06:46 -0500 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2020-11-03 10:17:39 -0500 |
commit | 220929c067717605cab96a9c5fe93e2e01532e51 (patch) | |
tree | 8c765d51a3957f50fe64638e064b3a5a9eb23f69 /gcc/omp-simd-clone.c | |
parent | c2856ceec2e7542fe9b0bf104afeeeeb57d6996d (diff) | |
download | gcc-220929c067717605cab96a9c5fe93e2e01532e51.zip gcc-220929c067717605cab96a9c5fe93e2e01532e51.tar.gz gcc-220929c067717605cab96a9c5fe93e2e01532e51.tar.bz2 |
Tweaks to ranger cache
Add some bounds checking to ssa_block_ranges, and privatize the
ranges block cache and global cache, adding API points for accessing them.
* gimple-range-cache.h (block_range_cache): Add new entry point.
(ranger_cache): Privatize global abnd block cache members.
* gimple-range-cache.cc (ssa_block_ranges::set_bb_range): Add bounds
check.
(ssa_block_ranges::set_bb_varying): Ditto.
(ssa_block_ranges::get_bb_range): Ditto.
(ssa_block_ranges::bb_range_p): Ditto.
(block_range_cache::get_block_ranges): Fix formatting.
(block_range_cache::query_block_ranges): New.
(block_range_cache::get_bb_range): Use Query_block_ranges.
(block_range_cache::bb_range_p): Ditto.
(ranger_cache::dump): New.
(ranger_cache::get_global_range): New.
(ranger_cache::set_global_range): New.
* gimple-range.cc (gimple_ranger::range_of_expr): Use new API.
(gimple_ranger::range_of_stmt): Ditto.
(gimple_ranger::export_global_ranges): Ditto.
(gimple_ranger::dump): Ditto.
Diffstat (limited to 'gcc/omp-simd-clone.c')
0 files changed, 0 insertions, 0 deletions