public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/pheeck/heads/sccp)] afixed uto_vec scc -tovec scc; ; includes clean up
@ 2022-09-06 10:44 Filip Kastl
0 siblings, 0 replies; 2+ messages in thread
From: Filip Kastl @ 2022-09-06 10:44 UTC (permalink / raw)
To: gcc-cvs
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 ();
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gcc(refs/users/pheeck/heads/sccp)] afixed uto_vec scc -tovec scc; ; includes clean up
@ 2023-02-15 10:14 Filip Kastl
0 siblings, 0 replies; 2+ messages in thread
From: Filip Kastl @ 2023-02-15 10:14 UTC (permalink / raw)
To: gcc-cvs
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 ();
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-15 10:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-06 10:44 [gcc(refs/users/pheeck/heads/sccp)] afixed uto_vec scc -tovec scc; ; includes clean up Filip Kastl
2023-02-15 10:14 Filip Kastl
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).