Skip to content

Commit

Permalink
improve loop cg
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander.nutz committed Dec 12, 2024
1 parent c30be73 commit aca087b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ir/transform/ssair_llir_lower.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,7 @@ static void lower_into(vx_IrBlock *old, vx_IrBlock *dest, vx_IrBlock *newParent,
lower_into(body, dest, newParent, newContinueLabel, newBreakLabel, op);

for (size_t i = 0; i < op->outs_len; i ++) {
vx_IrOp* mov = vx_IrBlock_addOpBuilding(dest);
vx_IrOp_init(mov, VX_IR_OP_IMM, dest);
vx_IrOp_addOut(mov, op->outs[i].var, op->outs[i].type);
vx_IrOp_addParam_s(mov, VX_IR_NAME_VALUE, VX_IR_VALUE_VAR(body->outs[i]));
vx_IrBlock_renameVar(dest, body->outs[i], op->outs[i].var, VX_RENAME_VAR_BOTH);
}

vx_IrOp* jmp = vx_IrBlock_addOpBuilding(dest);
Expand Down

0 comments on commit aca087b

Please sign in to comment.