summaryrefslogtreecommitdiffhomepage
path: root/ir/be/benode.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-03-21 14:10:10 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2016-03-21 14:10:55 +0100
commit35093541d98be38944c77818bfa2663d590e0968 (patch)
tree70cb63e72a14b857a7993a0a2a3423d65d9d58aa /ir/be/benode.c
parentacad1b054639456ae36364d9c84827d3d9eef2e5 (diff)
be: Move 'ignore' check into 'be_create_reg_req()'.
Diffstat (limited to 'ir/be/benode.c')
-rw-r--r--ir/be/benode.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ir/be/benode.c b/ir/be/benode.c
index 1dac4cd..96fc128 100644
--- a/ir/be/benode.c
+++ b/ir/be/benode.c
@@ -515,10 +515,9 @@ ir_node *be_new_Start(ir_graph *const irg, be_start_out const *const outs)
arch_register_t const *const regs = isa_if->registers;
for (unsigned i = 0; i != n_regs; ++i) {
if (outs[i] != BE_START_NO) {
- arch_register_t const *const reg = &regs[i];
- arch_register_req_t const *const req = outs[i] == BE_START_IGNORE
- ? be_create_reg_req(irg, reg, true)
- : reg->single_req;
+ arch_register_t const *const reg = &regs[i];
+ bool const ignore = outs[i] == BE_START_IGNORE;
+ arch_register_req_t const *const req = be_create_reg_req(irg, reg, ignore);
arch_set_irn_register_req_out(start, l, req);
arch_set_irn_register_out( start, l, reg);
++l;