Commit 23f4062d authored by Matthias Braun's avatar Matthias Braun
Browse files

optimisations work independently of current_ir_graph now, no need to...

optimisations work independently of current_ir_graph now, no need to set/restore it in node construction anymore

[r28011]
parent f46792d0
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment