projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
typos fixed
[libfirm]
/
ir
/
ana
/
ircfscc.c
diff --git
a/ir/ana/ircfscc.c
b/ir/ana/ircfscc.c
index
26becd0
..
4b60116
100644
(file)
--- 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 algor
i
thm
*/
static INLINE void
init_scc_common (void) {
*/
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.
*
/** 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
* @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)) {
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 {
} 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.
* 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)
*/
static bool
is_endless_head (ir_node *n, ir_node *root)