From 23f4062d6fc63b1d2d9f173ade7498cf65b8a55b Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 22 Sep 2010 14:07:35 +0000 Subject: [PATCH] optimisations work independently of current_ir_graph now, no need to set/restore it in node construction anymore [r28011] --- scripts/gen_ir.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/gen_ir.py b/scripts/gen_ir.py index 3d06eac90..3dae6d489 100755 --- a/scripts/gen_ir.py +++ b/scripts/gen_ir.py @@ -285,10 +285,8 @@ ir_node *new_rd_{{node.constrname}}( {% endfilter %}) { ir_node *res; - ir_graph *rem = current_ir_graph; {{node|irgassign}} {{node|insdecl}} - current_ir_graph = irg; res = new_ir_node( {%- filter arguments %} dbgi @@ -312,7 +310,6 @@ ir_node *new_rd_{{node.constrname}}( res = optimize_node(res); {%- endif %} IRN_VERIFY_IRG(res, irg); - current_ir_graph = rem; return res; } -- 2.20.1