Commit 6dea1e53 authored by Michael Beck's avatar Michael Beck
Browse files

- removed skip_HighLevel()

- add new skip_HighLevel_ops() skipping all Confirm, Cast nodes

[r17169]
parent dd770f6e
...@@ -1214,8 +1214,8 @@ ir_node *skip_Tuple(ir_node *node); ...@@ -1214,8 +1214,8 @@ ir_node *skip_Tuple(ir_node *node);
ir_node *skip_Cast(ir_node *node); ir_node *skip_Cast(ir_node *node);
/** Returns operand of node if node is a Confirm */ /** Returns operand of node if node is a Confirm */
ir_node *skip_Confirm(ir_node *node); ir_node *skip_Confirm(ir_node *node);
/** Skip all high-level Operations. */ /** Skip all high-level Operations (including Cast, Confirm). */
ir_node *skip_HighLevel(ir_node *node); ir_node *skip_HighLevel_ops(ir_node *node);
/** Returns true if irn is a Const node. */ /** Returns true if irn is a Const node. */
int is_Const(const ir_node *node); int is_Const(const ir_node *node);
/** Returns true if a node is a Conv node. */ /** Returns true if a node is a Conv node. */
......
...@@ -2550,9 +2550,10 @@ ir_node *skip_Confirm(ir_node *node) { ...@@ -2550,9 +2550,10 @@ ir_node *skip_Confirm(ir_node *node) {
} }
/* skip all high-level ops */ /* skip all high-level ops */
ir_node *skip_HighLevel(ir_node *node) { ir_node *skip_HighLevel_ops(ir_node *node) {
if (is_op_highlevel(get_irn_op(node))) while (is_op_highlevel(get_irn_op(node))) {
return get_irn_n(node, 0); node = get_irn_n(node, 0);
}
return node; return node;
} }
......
Supports Markdown
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