]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.c
'likely' hint for IFs
[xonotic/gmqcc.git] / ast.c
diff --git a/ast.c b/ast.c
index 7487e2332798f0a4512f3602cfd802263ee46715..f5ed565e93644b202798d2ff88c33ada85d57656 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -1538,6 +1538,8 @@ bool ast_binary_codegen(ast_binary *self, ast_function *func, bool lvalue, ir_va
             if (!ir_block_create_if(func->curblock, left, merge, other))
                 return false;
         }
+        /* use the unlikely flag */
+        vec_last(func->curblock->instr)->likely = false;
 
         func->curblock = other;
         cgen = self->right->expression.codegen;