diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2020-11-02 17:04:23 -0500 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2020-11-03 10:17:39 -0500 |
commit | ea7df355ca4a4571d07d1fc9528cccd1393c2420 (patch) | |
tree | a6898fdc3b74d003b823e48bf9718981a469738e /gcc/tree-ssa-pre.c | |
parent | 220929c067717605cab96a9c5fe93e2e01532e51 (diff) | |
download | gcc-ea7df355ca4a4571d07d1fc9528cccd1393c2420.zip gcc-ea7df355ca4a4571d07d1fc9528cccd1393c2420.tar.gz gcc-ea7df355ca4a4571d07d1fc9528cccd1393c2420.tar.bz2 |
More Ranger cache tweaks
This patch splits the individual value propagation out from fill_block_cache,
and calls it from set_global_value when the global value is updated.
This ensures the "current" global value is reflected in the on-entry cache.
* gimple-range-cache.cc (ssa_global_cache::get_global_range): Return
true if there was a previous range set.
(ranger_cache::ranger_cache): Take a gimple_ranger parameter.
(ranger_cache::set_global_range): Propagate the value if updating.
(ranger_cache::propagate_cache): Renamed from iterative_cache_update.
(ranger_cache::propagate_updated_value): New. Split from:
(ranger_cache::fill_block_cache): Split out value propagator.
* gimple-range-cache.h (ssa_global_cache): Update prototypes.
(ranger_cache): Update prototypes.
Diffstat (limited to 'gcc/tree-ssa-pre.c')
0 files changed, 0 insertions, 0 deletions