From 870b674f72d4894b94efa61764fd87ecec29ffde Mon Sep 17 00:00:00 2001 From: Andrew MacLeod Date: Fri, 18 Jun 2021 12:33:18 -0400 Subject: 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. --- gcc/gimple-range-cache.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'gcc/gimple-range-cache.h') 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 m_workback; vec 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 m_poor_value_list; - class gimple_ranger &query; - bool m_new_value_p; }; #endif // GCC_SSA_RANGE_CACHE_H -- cgit v1.1