From patchwork Thu Dec 13 22:42:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: don't allocate/free unused pointer set in verify_cgraph_node Date: Thu, 13 Dec 2012 12:42:58 -0000 From: Steven Bosscher X-Patchwork-Id: 206264 Message-Id: To: GCC Patches Cc: Jan Hubicha Hello, Looks like a remnant from pre GIMPLE tuples days. Will commit as obvious. Ciao! Steven * cgraph.c (verify_cgraph_node): Don't allocate/free visited_nodes set. Index: cgraph.c =================================================================== --- cgraph.c (revision 194491) +++ cgraph.c (working copy) @@ -2498,9 +2498,6 @@ verify_cgraph_node (struct cgraph_node * { 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 enclosing basic-blocks in the call edges. */ FOR_EACH_BB_FN (this_block, this_cfun) @@ -2550,7 +2547,6 @@ verify_cgraph_node (struct cgraph_node * } } } - pointer_set_destroy (visited_nodes); } else /* No CFG available?! */