Commit 023d4ee9 authored by Christian Würdig's avatar Christian Würdig
Browse files

call hook_set_irn_n when adding new inputs

[r8690]
parent 613a07e3
......@@ -35,6 +35,7 @@
#include "irop_t.h"
#include "iropt_t.h"
#include "irgmod.h"
#include "irhooks.h"
#include "array.h"
#include "irbackedge_t.h"
#include "irflag_t.h"
......@@ -3031,8 +3032,11 @@ add_immBlock_pred(ir_node *block, ir_node *jmp)
assert(0 && "Error: Block already matured!\n");
}
else {
int n = ARR_LEN(block->in) - 1;
assert(jmp != NULL);
ARR_APP1(ir_node *, block->in, jmp);
/* Call the hook */
hook_set_irn_n(block, n, jmp, NULL);
}
} /* add_immBlock_pred */
......
......@@ -312,6 +312,9 @@ int add_irn_n(ir_node *node, ir_node *in)
ARR_APP1(ir_node *, node->in, in);
edges_notify_edge(node, pos, node->in[pos + 1], NULL, irg);
/* Call the hook */
hook_set_irn_n(node, pos, node->in[pos + 1], NULL);
return pos;
}
......
Markdown is supported
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