]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
counters for -Ocall-stores because we all love numbers
authorWolfgang Bumiller <blub@speed.at>
Wed, 26 Dec 2012 18:11:26 +0000 (19:11 +0100)
committerWolfgang Bumiller <blub@speed.at>
Wed, 26 Dec 2012 18:11:26 +0000 (19:11 +0100)
ir.c

diff --git a/ir.c b/ir.c
index 54cec7ea3e0dd95625a1ffc92027c15080b9dbdf..66236f7005127d6b835bd65e57f943441232d89b 100644 (file)
--- 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;
             }
         }