public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-2279] tree-optimization/73550 - apply MAX_NUM_CHAINS consistently
@ 2022-08-30 13:38 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2022-08-30 13:38 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:ce776225249d99b089d02424b9472811a6bbd7f5

commit r13-2279-gce776225249d99b089d02424b9472811a6bbd7f5
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Aug 30 14:37:23 2022 +0200

    tree-optimization/73550 - apply MAX_NUM_CHAINS consistently
    
    The MAX_NUM_CHAINS is applied once with <= and once with < which
    results in the chains not limited but analyis dropped completely.
    That's one issue in the PR.
    
            PR tree-optimization/73550
            * gimple-predicate-analysis.cc (predicate::init_from_control_deps):
            Do not apply MAX_NUM_CHAINS again.

Diff:
---
 gcc/gimple-predicate-analysis.cc | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/gcc/gimple-predicate-analysis.cc b/gcc/gimple-predicate-analysis.cc
index 068196cb157..00c6bfc50a3 100644
--- a/gcc/gimple-predicate-analysis.cc
+++ b/gcc/gimple-predicate-analysis.cc
@@ -1674,13 +1674,6 @@ predicate::init_from_control_deps (const vec<edge> *dep_chains,
   if (num_chains == 0)
     return;
 
-  if (num_chains >= MAX_NUM_CHAINS)
-    {
-      if (dump_file)
-	fprintf (dump_file, "MAX_NUM_CHAINS exceeded: %u\n", num_chains);
-      return;
-    }
-
   /* Convert the control dependency chain into a set of predicates.  */
   m_preds.reserve (num_chains);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-30 13:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-30 13:38 [gcc r13-2279] tree-optimization/73550 - apply MAX_NUM_CHAINS consistently Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).