]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Disable poor value processing in ranger cache.
authorAndrew MacLeod <amacleod@redhat.com>
Wed, 23 Jun 2021 16:55:14 +0000 (12:55 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Wed, 14 Jul 2021 19:14:20 +0000 (15:14 -0400)
* gimple-range-cache.cc (ranger_cache::push_poor_value): Disable
poor value processing.

gcc/gimple-range-cache.cc

index bc4b557b4931ab98a8d4cec2cae58b14a6015529..068905d47747e9e70688ff7699ab1a270f3152a6 100644 (file)
@@ -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