Commit 8052ea77 by Steven Bosscher

* cgraph.c (verify_cgraph_node): Don't allocate/free visited_nodes set.

From-SVN: r194726
parent 4e766b5d
2012-12-27 Steven Bosscher <steven@gcc.gnu.org>
* cgraph.c (verify_cgraph_node): Don't allocate/free visited_nodes set.
2012-12-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 2012-12-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/53789 PR target/53789
...@@ -2498,9 +2498,6 @@ verify_cgraph_node (struct cgraph_node *node) ...@@ -2498,9 +2498,6 @@ verify_cgraph_node (struct cgraph_node *node)
{ {
if (this_cfun->cfg) if (this_cfun->cfg)
{ {
/* The nodes we're interested in are never shared, so walk
the tree ignoring duplicates. */
struct pointer_set_t *visited_nodes = pointer_set_create ();
/* Reach the trees by walking over the CFG, and note the /* Reach the trees by walking over the CFG, and note the
enclosing basic-blocks in the call edges. */ enclosing basic-blocks in the call edges. */
FOR_EACH_BB_FN (this_block, this_cfun) FOR_EACH_BB_FN (this_block, this_cfun)
...@@ -2550,7 +2547,6 @@ verify_cgraph_node (struct cgraph_node *node) ...@@ -2550,7 +2547,6 @@ verify_cgraph_node (struct cgraph_node *node)
} }
} }
} }
pointer_set_destroy (visited_nodes);
} }
else else
/* No CFG available?! */ /* No CFG available?! */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment