X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Fircfscc.c;h=4b60116d5ebab277fac2e54b6da7c8a248c82529;hb=5afaf595a454bb6b87899b317f2ae99ed03bf62e;hp=26becd0d82c5a14a495074502433790884f657b7;hpb=9e64ccaa8ab67fad19148f2743f250200beeb9c3;p=libfirm diff --git a/ir/ana/ircfscc.c b/ir/ana/ircfscc.c index 26becd0d8..4b60116d5 100644 --- a/ir/ana/ircfscc.c +++ b/ir/ana/ircfscc.c @@ -298,7 +298,7 @@ init_node (ir_node *n, void *env) { } /** - * Initializes the common global settings for the scc algorthm + * Initializes the common global settings for the scc algorithm */ static INLINE void init_scc_common (void) { @@ -348,6 +348,7 @@ static bool is_outermost_StartBlock(ir_node *n) { /** Returns true if n is a loop header, i.e., it is a Block node * and has predecessors within the cfloop and out of the cfloop. * + * @param n the block node to check * @param root only needed for assertion. */ static bool @@ -364,13 +365,13 @@ is_head (ir_node *n, ir_node *root) ir_node *pred = get_nodes_block(skip_Proj(get_irn_n(n, i))); if (is_backedge(n, i)) continue; if (!irn_is_in_stack(pred)) { - some_outof_loop = 1; + some_outof_loop = 1; } else { - if (get_irn_uplink(pred) < get_irn_uplink(root)) { - DDMN(pred); DDMN(root); - assert(get_irn_uplink(pred) >= get_irn_uplink(root)); - } - some_in_loop = 1; + if (get_irn_uplink(pred) < get_irn_uplink(root)) { + DDMN(pred); DDMN(root); + assert(get_irn_uplink(pred) >= get_irn_uplink(root)); + } + some_in_loop = 1; } } } @@ -382,7 +383,9 @@ is_head (ir_node *n, ir_node *root) * Returns true if n is possible loop head of an endless loop. * I.e., it is a Block, Phi or Filter node and has only predecessors * within the loop. - * @arg root: only needed for assertion. + * + * @param n the block node to check + * @param root only needed for assertion. */ static bool is_endless_head (ir_node *n, ir_node *root)