summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beprefalloc.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/beprefalloc.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/beprefalloc.c')
-rw-r--r--ir/be/beprefalloc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ir/be/beprefalloc.c b/ir/be/beprefalloc.c
index 4f9d109..faf0753 100644
--- a/ir/be/beprefalloc.c
+++ b/ir/be/beprefalloc.c
@@ -1505,12 +1505,10 @@ static void allocate_coalesce_block(ir_node *block, void *data)
}
if (need_phi) {
- ir_mode *mode = get_irn_mode(node);
const arch_register_req_t *phi_req = cls->class_req;
if (req->width > 1)
phi_req = be_create_cls_req(irg, cls, req->width);
- ir_node *phi = be_new_Phi(block, n_preds, phi_ins, mode,
- phi_req);
+ ir_node *const phi = be_new_Phi(block, n_preds, phi_ins, phi_req);
DB((dbg, LEVEL_3, "Create Phi %+F (for %+F) -", phi, node));
#ifdef DEBUG_libfirm