X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fcode_placement.c;h=75bb38402ba70a403e4a74fa57a47f2cbe44db27;hb=d5d7159c209a9e5c5fa276f770b5b28a217990a8;hp=a04a727eecbaa97c21805bdd33322a7c170f3bc1;hpb=ce6161a7e42a48f7422b7babcc64d8ace18e2687;p=libfirm diff --git a/ir/opt/code_placement.c b/ir/opt/code_placement.c index a04a727ee..75bb38402 100644 --- a/ir/opt/code_placement.c +++ b/ir/opt/code_placement.c @@ -55,7 +55,7 @@ static int is_Block_unreachable(ir_node *block) * all "living" nodes into a living block. That's why we must * move nodes in dead block with "live" successors into a valid * block. - * We move them just into the same block as it's successor (or + * We move them just into the same block as its successor (or * in case of a Phi into the effective use block). For Phi successors, * this may still be a dead block, but then there is no real use, as * the control flow will be dead later. @@ -319,7 +319,7 @@ static inline int get_block_loop_depth(ir_node *block) } /** - * Move n to a block with less loop depth than it's current block. The + * Move n to a block with less loop depth than its current block. The * new block must be dominated by early. * * @param n the node that should be moved @@ -529,11 +529,7 @@ void place_code(ir_graph *irg) assert(get_irg_phase_state(irg) != phase_building); assure_irg_outs(irg); assure_doms(irg); - - if (1 || get_irg_loopinfo_state(irg) != loopinfo_consistent) { - free_loop_information(irg); - construct_cf_backedges(irg); - } + assure_cf_loop(irg); /* Place all floating nodes as early as possible. This guarantees a legal code placement. */