mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 14:21:36 +00:00
STOREP instructions' first operand has to be considered a read-operand, not a write operand, otherwise the life ranges will be wrong, and the value itself IS only read, not written to
This commit is contained in:
parent
332d306723
commit
387335bb4d
1 changed files with 9 additions and 0 deletions
9
ir.c
9
ir.c
|
@ -1947,6 +1947,15 @@ static void ir_op_read_write(int op, size_t *read, size_t *write)
|
|||
*write = 0;
|
||||
*read = 1;
|
||||
break;
|
||||
case INSTR_STOREP_F:
|
||||
case INSTR_STOREP_V:
|
||||
case INSTR_STOREP_S:
|
||||
case INSTR_STOREP_ENT:
|
||||
case INSTR_STOREP_FLD:
|
||||
case INSTR_STOREP_FNC:
|
||||
*write = 0;
|
||||
*read = 7;
|
||||
break;
|
||||
default:
|
||||
*write = 1;
|
||||
*read = 6;
|
||||
|
|
Loading…
Reference in a new issue