mirror of
https://github.com/danog/ir.git
synced 2025-01-22 05:31:32 +01:00
Add comments
This commit is contained in:
parent
9f81982d86
commit
637fe28e90
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user