X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=fold.c;h=01e6cd0f41d5571c41d44176a37053f815c5c956;hp=52bedaeae467a3a456256460d386f0dc87b19852;hb=7669a99c7f03f92f78c2bfe0968b1d8789512ff5;hpb=69c4dce4771fb5720b9f3fa3e0eff0416f3d138e diff --git a/fold.c b/fold.c index 52bedae..01e6cd0 100644 --- 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 */