From: Andrew MacLeod Date: Wed, 23 Jun 2021 16:55:14 +0000 (-0400) Subject: Disable poor value processing in ranger cache. X-Git-Tag: releases/gcc-11.2.0~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86534c07a390e240ffea51653945de85df7a3632;p=thirdparty%2Fgcc.git Disable poor value processing in ranger cache. * gimple-range-cache.cc (ranger_cache::push_poor_value): Disable poor value processing. --- diff --git a/gcc/gimple-range-cache.cc b/gcc/gimple-range-cache.cc index bc4b557b4931..068905d47747 100644 --- a/gcc/gimple-range-cache.cc +++ b/gcc/gimple-range-cache.cc @@ -846,20 +846,9 @@ ranger_cache::register_dependency (tree name, tree dep) bool ranger_cache::push_poor_value (basic_block bb, tree name) { - if (m_poor_value_list.length ()) - { - // Don't push anything else to the same block. If there are multiple - // things required, another request will come during a later evaluation - // and this prevents oscillation building uneccessary depth. - if ((m_poor_value_list.last ()).bb == bb) - return false; - } - - struct update_record rec; - rec.bb = bb; - rec.calc = name; - m_poor_value_list.safe_push (rec); - return true; + // Disable poor value processing for GCC 11. It has been disabled in GCC 12 + // as adding too much churn/compile time for too little benefit. + return false; } // Provide lookup for the gori-computes class to access the best known range