]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.h
Don't delete the ftepp prematurely
[xonotic/gmqcc.git] / ast.h
diff --git a/ast.h b/ast.h
index 989fae727b72965561444bf0289426d4f4f49496..00802ca3168aca62fbab474dc20111b78a3465b0 100644 (file)
--- a/ast.h
+++ b/ast.h
@@ -398,9 +398,6 @@ struct ast_ternary_s
     /* It's all just 'expressions', since an ast_block is one too. */
     ast_expression *on_true;
     ast_expression *on_false;
-    /* After a ternary expression we find ourselves in a new IR block
-     * and start with a PHI node */
-    ir_value       *phi_out;
 };
 ast_ternary* ast_ternary_new(lex_ctx ctx, ast_expression *cond, ast_expression *ontrue, ast_expression *onfalse);
 void ast_ternary_delete(ast_ternary*);
@@ -552,6 +549,15 @@ struct ast_function_s
     ir_block    *breakblock;
     ir_block    *continueblock;
 
+#if 0
+    /* In order for early-out logic not to go over
+     * excessive jumps, we remember their target
+     * blocks...
+     */
+    ir_block    *iftrue;
+    ir_block    *iffalse;
+#endif
+
     size_t       labelcount;
     /* in order for thread safety - for the optional
      * channel abesed multithreading... keeping a buffer