]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - parser.h
Another peephole optimization which removes superfluous expressions such as (A +...
[xonotic/gmqcc.git] / parser.h
index 54f93b29acae7d9f848bd118ba1341c55a54f941..b1c7a2085d298753f848deefc642aabca16df1e4 100644 (file)
--- a/parser.h
+++ b/parser.h
@@ -133,6 +133,7 @@ bool            fold_generate       (fold_t *, ir_builder *);
 ast_expression *fold_op             (fold_t *, const oper_info *, ast_expression **);
 ast_expression *fold_intrin         (fold_t *, const char      *, ast_expression **);
 
+ast_expression *fold_superfluous    (ast_expression *, ast_expression *, int);
 int             fold_cond_ifthen    (ir_value *, ast_function *, ast_ifthen  *);
 int             fold_cond_ternary   (ir_value *, ast_function *, ast_ternary *);