Commit 4ef694e7 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

instrument: Remove stale start loop test.

parent ad9b1363
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
void instrument_initcall(ir_graph *irg, ir_entity *ent) void instrument_initcall(ir_graph *irg, ir_entity *ent)
{ {
ir_node *initial_exec; ir_node *initial_exec;
ir_node *start_block;
ir_node *first_block = NULL; ir_node *first_block = NULL;
int i, idx, need_new_block; int i, idx, need_new_block;
symconst_symbol sym; symconst_symbol sym;
...@@ -43,12 +42,11 @@ void instrument_initcall(ir_graph *irg, ir_entity *ent) ...@@ -43,12 +42,11 @@ void instrument_initcall(ir_graph *irg, ir_entity *ent)
/* find the first block */ /* find the first block */
initial_exec = get_irg_initial_exec(irg); initial_exec = get_irg_initial_exec(irg);
start_block = get_irg_start_block(irg);
foreach_out_edge(initial_exec, edge) { foreach_out_edge(initial_exec, edge) {
ir_node *succ = get_edge_src_irn(edge); ir_node *succ = get_edge_src_irn(edge);
if (succ != start_block && is_Block(succ)) { if (is_Block(succ)) {
/* found the first block */ /* found the first block */
first_block = succ; first_block = succ;
break; break;
......
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