summaryrefslogtreecommitdiffhomepage
path: root/ir/be/betranshlp.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2018-05-28 08:55:23 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2018-05-28 22:25:02 +0200
commit73961e8ead2d3c4af78bbe504479bcd7a7508984 (patch)
treebf5f052f834da88c5190d554d386756e0d77014f /ir/be/betranshlp.c
parentca580002f5662585ea2b6791dc9ac34425ac61e9 (diff)
be, ir: For consistency memory now is the first output of ASM and be_Asm.
Diffstat (limited to 'ir/be/betranshlp.c')
-rw-r--r--ir/be/betranshlp.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/ir/be/betranshlp.c b/ir/be/betranshlp.c
index 68de69a..7337877 100644
--- a/ir/be/betranshlp.c
+++ b/ir/be/betranshlp.c
@@ -175,17 +175,6 @@ static ir_node *transform_proj(ir_node *node)
return proj_transform(node);
}
-static ir_node *transform_Proj_ASM(ir_node *const node)
-{
- ir_node *const pred = get_Proj_pred(node);
- ir_node *const new_pred = be_transform_node(pred);
- ir_mode *const mode = get_irn_mode(node);
- unsigned const num = mode == mode_M ?
- arch_get_irn_n_outs(new_pred) - 1 :
- get_Proj_num(node);
- return be_new_Proj(new_pred, num);
-}
-
ir_node *be_duplicate_node(ir_node *const node)
{
int const arity = get_irn_arity(node);
@@ -476,7 +465,7 @@ void be_start_transform_setup(void)
be_set_transform_function(op_Proj, transform_proj);
be_set_transform_function(op_Sync, be_duplicate_node);
- be_set_transform_proj_function(op_ASM, transform_Proj_ASM);
+ be_set_transform_proj_function(op_ASM, be_gen_Proj_default);
be_set_transform_proj_function(op_Cond, be_gen_Proj_default);
be_set_transform_proj_function(op_Switch, be_gen_Proj_default);