From: Michael Beck Date: Mon, 12 Sep 2005 14:05:47 +0000 (+0000) Subject: ensure that the leader is the first one in the extended block block list X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=2c7c0dac300097b2894ad4624e9f3d2e82884305;p=libfirm ensure that the leader is the first one in the extended block block list [r6608] --- diff --git a/ir/ana/irextbb.c b/ir/ana/irextbb.c index 68fe2e060..7a9f71b60 100644 --- a/ir/ana/irextbb.c +++ b/ir/ana/irextbb.c @@ -155,7 +155,8 @@ void compute_extbb(ir_graph *irg) { for (block = extbb->link, i = 0; i < len; ++i) { ir_node *nblock = get_irn_link(block); - extbb->blks[i] = block; + /* ensure that the leader is the first one */ + extbb->blks[len - 1 - i] = block; set_irn_link(block, NULL); block = nblock; }