tos = 0;
}
+static void finish_stack(void)
+{
+ DEL_ARR_F(stack);
+ stack = NULL;
+}
+
/**
* Push a node n onto the IR-node stack.
*/
irg_walk_graph(irg, init_node, NULL, obst);
}
+static INLINE void finish_scc(void)
+{
+ finish_stack();
+}
+
#ifdef INTERPROCEDURAL_VIEW
/**
* Initializes the scc algorithm for the interprocedural case.
static int is_head(ir_node *n, ir_node *root) {
int i, arity;
int some_outof_loop = 0, some_in_loop = 0;
+ (void) root;
assert(is_Block(n));
static int is_endless_head(ir_node *n, ir_node *root) {
int i, arity;
int none_outof_loop = 1, some_in_loop = 0;
+ (void) root;
assert(is_Block(n));
/* Test for legal loop header: Block, Phi, ... */
if (is_Block(el))
cfscc(el);
}
+ finish_scc();
obstack_free(&temp, NULL);
assert(head_rem == current_loop);