X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fcfopt.c;h=e9497a596aeb1c396e8088324048287f8e5cb9c8;hb=04906225f6fe1bc22f73b5d6a98eb9c0992a9b54;hp=dbaecd6aef959a4b111911923946a12ce67ada39;hpb=0547aac800610e15d2463fe90bb7c0358d3c4ff6;p=libfirm diff --git a/ir/opt/cfopt.c b/ir/opt/cfopt.c index dbaecd6ae..e9497a596 100644 --- a/ir/opt/cfopt.c +++ b/ir/opt/cfopt.c @@ -23,9 +23,7 @@ * @author Goetz Lindenmaier, Michael Beck, Sebastian Hack * @version $Id$ */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "config.h" #include "iroptimize.h" @@ -788,13 +786,15 @@ restart: ir_node *ka = get_End_keepalive(end, i); if (!irn_visited(ka)) { - if (is_Block(ka) && !Block_block_visited(ka)) { - /* irg_block_walk() will increase the block visited flag, but we must visit only - these blocks that are not visited yet, so decrease it first. */ - set_irg_block_visited(irg, get_irg_block_visited(irg) - 1); - irg_block_walk(ka, optimize_blocks, remove_simple_blocks, &env.changed); - mark_irn_visited(ka); - in[j++] = ka; + if (is_Block(ka)) { + if (!Block_block_visited(ka)) { + /* irg_block_walk() will increase the block visited flag, but we must visit only + these blocks that are not visited yet, so decrease it first. */ + set_irg_block_visited(irg, get_irg_block_visited(irg) - 1); + irg_block_walk(ka, optimize_blocks, remove_simple_blocks, &env.changed); + mark_irn_visited(ka); + in[j++] = ka; + } } else { mark_irn_visited(ka); /* don't keep alive dead blocks */