public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Filip Kastl <pheeck@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/users/pheeck/heads/sccp)] afixed uto_vec scc -tovec scc; ; includes clean up
Date: Wed, 15 Feb 2023 10:14:36 +0000 (GMT)	[thread overview]
Message-ID: <20230215101436.2522C385828D@sourceware.org> (raw)

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

commit d8ccc7ccf06c1777b01c22e3490b3b047eee135d
Author: Filip Kastl <filip.kastl@gmail.com>
Date:   Tue Sep 6 12:44:36 2022 +0200

    afixed uto_vec scc -tovec scc;; includes clean up

Diff:
---
 gcc/sccp.cc | 30 +++++-------------------------
 1 file changed, 5 insertions(+), 25 deletions(-)

diff --git a/gcc/sccp.cc b/gcc/sccp.cc
index c202c9f76e5..c7c9836e437 100644
--- a/gcc/sccp.cc
+++ b/gcc/sccp.cc
@@ -28,37 +28,17 @@ along with GCC; see the file COPYING3.  If not see
 #include "tree.h"
 #include "gimple.h"
 #include "tree-pass.h"
+#include "ssa.h"
 #include "gimple-iterator.h"
 
-#include <iostream>
-#include "gimple-pretty-print.h"
 #include "vec.h"
 #include "hash-set.h"
-#include "libiberty.h"
 
+#include <iostream>
+#include "gimple-pretty-print.h"
 #include "print-tree.h"
 #include "dumpfile.h"
 
-// TODO Imported for global var num_ssa_names to work
-#include "backend.h"
-#include "cfghooks.h"
-#include "ssa.h"
-#include "tree-ssa.h"
-#include "fold-const.h"
-#include "calls.h"
-#include "cfganal.h"
-#include "tree-eh.h"
-#include "gimplify.h"
-#include "gimple-iterator.h"
-#include "tree-cfg.h"
-#include "tree-ssa-loop-niter.h"
-#include "tree-into-ssa.h"
-#include "tree-dfa.h"
-#include "cfgloop.h"
-#include "tree-scalar-evolution.h"
-#include "tree-ssa-propagate.h"
-#include "gimple-fold.h"
-
 enum vstate
 {
   unvisited,
@@ -297,7 +277,7 @@ tarjan_compute_sccs (auto_vec<gphi *> &phis)
 	  /* If this is the root of an scc, pop it from stack.  */
 	  if (vs[i].lowlink == vs[i].index)
 	    {
-	      auto_vec<gphi *> scc;
+	      vec<gphi *> scc = vNULL;
 
 	      unsigned j;
 	      do
@@ -455,7 +435,7 @@ remove_redundant_phis (auto_vec<gphi *> &phis)
 	    }
 	}
 
-      scc.release();
+      scc.release ();
     }
 
   remove_zero_uses_phis ();

             reply	other threads:[~2023-02-15 10:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-15 10:14 Filip Kastl [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-09-06 10:44 Filip Kastl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230215101436.2522C385828D@sourceware.org \
    --to=pheeck@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).