From: Wolfgang Bumiller Date: Wed, 26 Dec 2012 18:11:26 +0000 (+0100) Subject: counters for -Ocall-stores because we all love numbers X-Git-Tag: before-library~489 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=700628b2cb03bd17df74c7b617ef84914629c9b1;p=xonotic%2Fgmqcc.git counters for -Ocall-stores because we all love numbers --- diff --git a/ir.c b/ir.c index 54cec7e..66236f7 100644 --- a/ir.c +++ b/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; } }