optimisations work independently of current_ir_graph now, no need to set/restore...
authorMatthias Braun <matze@braunis.de>
Wed, 22 Sep 2010 14:07:35 +0000 (14:07 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 22 Sep 2010 14:07:35 +0000 (14:07 +0000)
[r28011]

scripts/gen_ir.py

index 3d06eac..3dae6d4 100755 (executable)
@@ -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;
 }