summaryrefslogtreecommitdiffhomepage
path: root/ir/be/betranshlp.c
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-01-13 19:10:39 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-01-14 09:50:21 +0100
commit6477a0736874bd0c02e98f783d05189e1a0e4a06 (patch)
treed521d696bfb243319850feaa0db8bc4e6038c8f7 /ir/be/betranshlp.c
parent510577edd00eebcb7933c6ddfb365b0461b0d859 (diff)
be: Add and use be_transform_nodes_block().
Diffstat (limited to 'ir/be/betranshlp.c')
-rw-r--r--ir/be/betranshlp.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/ir/be/betranshlp.c b/ir/be/betranshlp.c
index 0de9ff8..3181a09 100644
--- a/ir/be/betranshlp.c
+++ b/ir/be/betranshlp.c
@@ -54,7 +54,7 @@ bool be_is_transformed(const ir_node *node)
ir_node *be_transform_phi(ir_node *node, const arch_register_req_t *req)
{
- ir_node *block = be_transform_node(get_nodes_block(node));
+ ir_node *block = be_transform_nodes_block(node);
ir_graph *irg = get_irn_irg(block);
dbg_info *dbgi = get_irn_dbg_info(node);
@@ -120,7 +120,7 @@ static ir_node *transform_end(ir_node *node)
* phase from visiting all the graph. */
ir_graph *irg = get_irn_irg(node);
dbg_info *dbgi = get_irn_dbg_info(node);
- ir_node *block = be_transform_node(get_nodes_block(node));
+ ir_node *block = be_transform_nodes_block(node);
int arity = get_irn_arity(node);
ir_node **ins = get_irn_in(node) + 1;
ir_node *new_end = new_ir_node(dbgi, irg, block, op_End, mode_X, arity, ins);
@@ -163,7 +163,7 @@ ir_node *be_duplicate_node(ir_node *const node)
ins[i] = be_transform_node(in);
}
- ir_node *const block = be_transform_node(get_nodes_block(node));
+ ir_node *const block = be_transform_nodes_block(node);
ir_node *const new_node = new_similar_node(node, block, ins);
new_node->node_nr = node->node_nr;
@@ -192,6 +192,12 @@ ir_node *be_transform_node(ir_node *node)
return new_node;
}
+ir_node *be_transform_nodes_block(ir_node const *const node)
+{
+ ir_node *const block = get_nodes_block(node);
+ return be_transform_node(block);
+}
+
void be_enqueue_preds(ir_node *node)
{
/* put the preds in the worklist */