]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - fold.c
increment the optimization counter for DCE'd folds, also enable -O3 for compilation.
[xonotic/gmqcc.git] / fold.c
diff --git a/fold.c b/fold.c
index 52bedaeae467a3a456256460d386f0dc87b19852..01e6cd0f41d5571c41d44176a37053f815c5c956 100644 (file)
--- a/fold.c
+++ b/fold.c
@@ -634,6 +634,7 @@ int fold_cond(ir_value *condval, ast_function *func, ast_ifthen *branch) {
          * is expanded into the current block for the function.
          */
         func->curblock = elide;
+        ++opts_optimizationcount[OPTIM_CONST_FOLD_DCE];
         return true;
     }
     return -1; /* nothing done */