Add comments

This commit is contained in:
Dmitry Stogov 2023-02-21 15:41:41 +03:00
parent 9f81982d86
commit 637fe28e90
2 changed files with 6 additions and 0 deletions

View File

@ -3158,6 +3158,9 @@ static void ir_emit_rload(ir_ctx *ctx, ir_ref def, ir_insn *insn)
ir_reg def_reg = IR_REG_NUM(ctx->regs[def][0]);
if (def_reg == IR_REG_NONE) {
/* op3 is used as a flag that the value is already stored in memory.
* If op3 is set we don't have to store the value once again (in case of spilling)
*/
if (!insn->op3) {
ir_emit_store(ctx, type, def, src_reg);
}

View File

@ -5354,6 +5354,9 @@ static void ir_emit_rload(ir_ctx *ctx, ir_ref def, ir_insn *insn)
ir_reg def_reg = IR_REG_NUM(ctx->regs[def][0]);
if (def_reg == IR_REG_NONE) {
/* op3 is used as a flag that the value is already stored in memory.
* If op3 is set we don't have to store the value once again (in case of spilling)
*/
if (!insn->op3) {
ir_emit_store(ctx, type, def, src_reg);
}