From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7879) id 335D938582AD; Tue, 6 Sep 2022 10:44:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 335D938582AD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662461089; bh=lKUAsdCtFPEaGD7EDNJAGTw8hqF5Aq+KBieL33m9nFo=; h=From:To:Subject:Date:From; b=H0Efbw5hVuz8E2suZIq7qEA2ZPHaITTmayIk2JnhNKlS+RntSiGrpFBUq3AzkiO97 3uCyd8JwDI32mZIROMHZv9u9t9k8MRVU016FkUBy0kjBJCSg8zNGWI51QilM7BuhvP tgoZqntgdblETwE9BzuS8IHAQ/5bxQu4zPWGm0ZY= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Filip Kastl To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/pheeck/heads/sccp)] afixed uto_vec scc -tovec scc; ; includes clean up X-Act-Checkin: gcc X-Git-Author: Filip Kastl X-Git-Refname: refs/users/pheeck/heads/sccp X-Git-Oldrev: bbbbeaac9644776f06f5b03c366567c21b7b7288 X-Git-Newrev: 42d2b29b9d037632af530bee13b611c176d8bf41 Message-Id: <20220906104449.335D938582AD@sourceware.org> Date: Tue, 6 Sep 2022 10:44:49 +0000 (GMT) List-Id: https://gcc.gnu.org/g:42d2b29b9d037632af530bee13b611c176d8bf41 commit 42d2b29b9d037632af530bee13b611c176d8bf41 Author: Filip Kastl 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 -#include "gimple-pretty-print.h" #include "vec.h" #include "hash-set.h" -#include "libiberty.h" +#include +#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 &phis) /* If this is the root of an scc, pop it from stack. */ if (vs[i].lowlink == vs[i].index) { - auto_vec scc; + vec scc = vNULL; unsigned j; do @@ -455,7 +435,7 @@ remove_redundant_phis (auto_vec &phis) } } - scc.release(); + scc.release (); } remove_zero_uses_phis ();