SNAPSHOT data shouldn't be in registers

This commit is contained in:
Dmitry Stogov 2022-10-25 12:22:49 +03:00
parent 265ebc1000
commit ba90e2825e
2 changed files with 2 additions and 2 deletions

View File

@ -471,7 +471,7 @@ uint8_t ir_get_use_flags(ir_ctx *ctx, ir_ref ref, int op_num, ir_reg *reg)
*reg = IR_REG_FP_RET1;
return IR_USE_SHOULD_BE_IN_REG;
case IR_SNAPSHOT:
return IR_USE_SHOULD_BE_IN_REG;
return 0;
}
return IR_USE_MUST_BE_IN_REG;

View File

@ -897,7 +897,7 @@ uint8_t ir_get_use_flags(ir_ctx *ctx, ir_ref ref, int op_num, ir_reg *reg)
}
break;
case IR_SNAPSHOT:
return IR_USE_SHOULD_BE_IN_REG;
return 0;
}
break;