diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2021-06-18 12:33:18 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2021-06-18 17:43:28 -0400 |
commit | 870b674f72d4894b94efa61764fd87ecec29ffde (patch) | |
tree | e03de3865dc9442cb0aff6a29adaf67eab24fab0 /gcc/gimple-range-cache.h | |
parent | 93022946df2463ad49e3eaa2f6d43c47c16f31c0 (diff) | |
download | gcc-870b674f72d4894b94efa61764fd87ecec29ffde.zip gcc-870b674f72d4894b94efa61764fd87ecec29ffde.tar.gz gcc-870b674f72d4894b94efa61764fd87ecec29ffde.tar.bz2 |
Remove poor value computations.
Remove the old "poor value" approach which made callbacks into ranger
from the cache. Use only the best available value for all propagation.
PR tree-optimization/101014
* gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
value list.
(ranger_cache::~ranger_cache): Ditto.
(ranger_cache::enable_new_values): Delete.
(ranger_cache::push_poor_value): Delete.
(ranger_cache::range_of_def): Remove poor value processing.
(ranger_cache::entry_range): Ditto.
(ranger_cache::fill_block_cache): Ditto.
* gimple-range-cache.h (class ranger_cache): Remove poor value members.
* gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
* gimple-range.h (class gimple_ranger): Adjust.
Diffstat (limited to 'gcc/gimple-range-cache.h')
-rw-r--r-- | gcc/gimple-range-cache.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/gcc/gimple-range-cache.h b/gcc/gimple-range-cache.h index 1a2aace..e67af68 100644 --- a/gcc/gimple-range-cache.h +++ b/gcc/gimple-range-cache.h @@ -90,7 +90,7 @@ private: class ranger_cache : public range_query { public: - ranger_cache (class gimple_ranger &q); + ranger_cache (); ~ranger_cache (); virtual bool range_of_expr (irange &r, tree name, gimple *stmt); @@ -123,17 +123,6 @@ private: vec<basic_block> m_workback; vec<basic_block> m_update_list; - - // Iterative "poor value" calculations. - struct update_record - { - basic_block bb; // Block which value needs to be calculated in. - tree calc; // SSA_NAME which needs its value calculated. - }; - bool push_poor_value (basic_block bb, tree name); - vec<update_record> m_poor_value_list; - class gimple_ranger &query; - bool m_new_value_p; }; #endif // GCC_SSA_RANGE_CACHE_H |