mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-22 02:31:28 +00:00
counters for -Ocall-stores because we all love numbers
This commit is contained in:
parent
14889897da
commit
700628b2cb
1 changed files with 2 additions and 0 deletions
2
ir.c
2
ir.c
|
@ -2209,6 +2209,7 @@ bool ir_function_allocate_locals(ir_function *self)
|
|||
goto error;
|
||||
}
|
||||
|
||||
++opts_optimizationcount[OPTIM_CALL_STORES];
|
||||
v->callparam = true;
|
||||
if (param < 8)
|
||||
ir_value_code_setaddr(v, OFS_PARM0 + 3*param);
|
||||
|
@ -2227,6 +2228,7 @@ bool ir_function_allocate_locals(ir_function *self)
|
|||
if (vec_size(v->writes) == 1 && v->writes[0]->opcode == INSTR_CALL0)
|
||||
{
|
||||
v->store = store_return;
|
||||
++opts_optimizationcount[OPTIM_CALL_STORES];
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue