From 700628b2cb03bd17df74c7b617ef84914629c9b1 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 26 Dec 2012 19:11:26 +0100 Subject: [PATCH] counters for -Ocall-stores because we all love numbers --- ir.c | 2 ++ 1 file changed, 2 insertions(+) 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; } } -- 2.39.2