summaryrefslogtreecommitdiffhomepage
path: root/ir/be/benode.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2018-02-21 08:56:47 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2018-02-26 14:02:40 +0100
commit2ed291c646ac94c8c725b14bc42ef8c073b8fc3f (patch)
treeb76615de11b31f8e831ce113e4308d393ee78ffa /ir/be/benode.c
parente3fa1ebd7a23409799ec92a617ed1b59135b05f3 (diff)
be: Remove the redundant parameter 'mode' from be_new_Phi().
Just like be_new_Phi0() get the mode from the parameter 'req'.
Diffstat (limited to 'ir/be/benode.c')
-rw-r--r--ir/be/benode.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ir/be/benode.c b/ir/be/benode.c
index 76920e6..5f020f7 100644
--- a/ir/be/benode.c
+++ b/ir/be/benode.c
@@ -369,11 +369,10 @@ bool be_get_IncSP_no_align(const ir_node *irn)
return a->no_align;
}
-ir_node *be_new_Phi(ir_node *block, int n_ins, ir_node **ins, ir_mode *mode,
- const arch_register_req_t *req)
+ir_node *be_new_Phi(ir_node *block, int n_ins, ir_node **ins, arch_register_req_t const *req)
{
ir_graph *irg = get_irn_irg(block);
- ir_node *phi = new_ir_node(NULL, irg, block, op_Phi, mode, n_ins, ins);
+ ir_node *phi = new_ir_node(NULL, irg, block, op_Phi, req->cls->mode, n_ins, ins);
phi->attr.phi.u.backedge = new_backedge_arr(get_irg_obstack(irg), n_ins);
struct obstack *obst = be_get_be_obst(irg);
backend_info_t *info = be_get_info(phi);