From e315207fd857c851f09651571e23f48be7a53823 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 21 Apr 2006 11:30:16 +0000 Subject: [PATCH] Fixed creation of Copy before Call --- ir/be/bechordal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ir/be/bechordal.c b/ir/be/bechordal.c index b14838091..1ac2f804c 100644 --- a/ir/be/bechordal.c +++ b/ir/be/bechordal.c @@ -317,9 +317,10 @@ static ir_node *pre_process_constraints(be_chordal_alloc_env_t *alloc_env, be_in which also occur as output constraints, so insert a copy. */ if(bitset_popcnt(bs) > 0) { - copy = be_new_Copy(op->req.cls, env->irg, bl, op->carrier); - insn->ops[i].carrier = copy; + copy = be_new_Copy(op->req.cls, env->irg, bl, op->carrier); + op->carrier = copy; sched_add_before(insn->irn, copy); + set_irn_n(insn->irn, op->pos, op->carrier); DBG((dbg, LEVEL_2, "adding copy for interfering and constrained op %+F\n", op->carrier)); } -- 2.20.1