[gcc(refs/users/pheeck/heads/sccp)] afixed uto_vec scc -tovec scc; ; includes clean up
Filip Kastl
pheeck@gcc.gnu.org
Tue Sep 6 10:44:49 GMT 2022
https://gcc.gnu.org/g:42d2b29b9d037632af530bee13b611c176d8bf41
commit 42d2b29b9d037632af530bee13b611c176d8bf41
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 ();
More information about the Gcc-cvs
mailing list