X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=ast.c;h=3c70a73721e49e726c1e010b3bbc0b77e94bc225;hb=7b7d01225578ed43d6e72b00fd9f823b39592033;hp=dbd23f14db04889f3e17a0b977db503aac5904dc;hpb=8d5e7190261d2ed0f214ef175d8451df3dbd4dc8;p=xonotic%2Fgmqcc.git diff --git a/ast.c b/ast.c index dbd23f1..3c70a73 100644 --- a/ast.c +++ b/ast.c @@ -438,7 +438,6 @@ bool ast_value_set_name(ast_value *self, const char *name) ast_binary* ast_binary_new(lex_ctx_t ctx, int op, ast_expression* left, ast_expression* right) { - ast_binary *fold; ast_instantiate(ast_binary, ctx, ast_binary_delete); ast_expression_init((ast_expression*)self, (ast_expression_codegen*)&ast_binary_codegen); @@ -450,11 +449,6 @@ ast_binary* ast_binary_new(lex_ctx_t ctx, int op, ast_propagate_effects(self, left); ast_propagate_effects(self, right); - if (OPTS_OPTIMIZATION(OPTIM_PEEPHOLE) && (fold = (ast_binary*)fold_superfluous(left, right, op))) { - ast_binary_delete(self); - return fold; - } - if (op >= INSTR_EQ_F && op <= INSTR_GT) self->expression.vtype = TYPE_FLOAT; else if (op == INSTR_AND || op == INSTR_OR) {