bestate: Remove redundant test for the start block.
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 5 Dec 2012 10:23:22 +0000 (11:23 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 5 Dec 2012 14:06:22 +0000 (15:06 +0100)
The start block has no predecessors, so the following loop will not be executed.

ir/be/bestate.c

index b111185..e14633c 100644 (file)
@@ -434,15 +434,10 @@ static void belady_walker(ir_node *block, void *data)
 static void fix_block_borders(ir_node *block, void *data)
 {
        minibelady_env_t *env = (minibelady_env_t*)data;
-       ir_graph *irg = get_irn_irg(block);
-       ir_node *startblock = get_irg_start_block(irg);
        int i;
        int arity;
        block_info_t *block_info;
 
-       if (block == startblock)
-               return;
-
        DBG((dbg, LEVEL_3, "\n"));
 
        block_info = get_block_info(block);