summaryrefslogtreecommitdiffhomepage
path: root/ir/be/benode.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-04-05 23:32:05 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2016-04-05 23:47:47 +0200
commit32a7a4ee64b0fd954307a7a851da3b2b2d857483 (patch)
treec6ad74ed63198076e11a0a941bd20c63cb9ff4c4 /ir/be/benode.c
parente9a97113eb3a676ab7980cd77580d33683a0ef50 (diff)
be: Determine mode of new Phi0 from the given register requirement.
Diffstat (limited to 'ir/be/benode.c')
-rw-r--r--ir/be/benode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/be/benode.c b/ir/be/benode.c
index 8bed485..65954c3 100644
--- a/ir/be/benode.c
+++ b/ir/be/benode.c
@@ -395,10 +395,10 @@ ir_node *be_new_Phi(ir_node *block, int n_ins, ir_node **ins, ir_mode *mode,
return optimize_node(phi);
}
-ir_node *be_new_Phi0(ir_node *const block, ir_mode *const mode, arch_register_req_t const *const req)
+ir_node *be_new_Phi0(ir_node *const block, arch_register_req_t const *const req)
{
ir_graph *const irg = get_irn_irg(block);
- ir_node *const phi = new_ir_node(NULL, irg, block, op_Phi, mode, 0, NULL);
+ ir_node *const phi = new_ir_node(NULL, irg, block, op_Phi, req->cls->mode, 0, NULL);
struct obstack *const obst = be_get_be_obst(irg);
backend_info_t *const info = be_get_info(phi);
info->out_infos = NEW_ARR_DZ(reg_out_info_t, obst, 1);