From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7879) id 2522C385828D; Wed, 15 Feb 2023 10:14:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2522C385828D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676456076; bh=R/jjMZAi5u21Mpwr+9SOSeC8j4KrNPEF+vS4BgmtaX4=; h=From:To:Subject:Date:From; b=m2u+wqMeC4HTZ1M+WJF677J6RL/RESMXcTo5M9kpzQhNjSqbYAbBN3wH4cD1Iw8gP YTTZzSPOf7cSK0qz+UxT02JTU2GG/AFgtKJ7SCbXlYOxAEfKK/ZSQewic8sUoqbm8L vjlbVD/z8g1qVN0JH6DY5mZxKfKyCpEgjnzpy+l0= 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: e86926f6099b4ecc18f93d7c26e88f200a5d69b1 X-Git-Newrev: d8ccc7ccf06c1777b01c22e3490b3b047eee135d Message-Id: <20230215101436.2522C385828D@sourceware.org> Date: Wed, 15 Feb 2023 10:14:36 +0000 (GMT) List-Id: https://gcc.gnu.org/g:d8ccc7ccf06c1777b01c22e3490b3b047eee135d commit d8ccc7ccf06c1777b01c22e3490b3b047eee135d 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 ();