ensure that the leader is the first one in the extended block block list
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 12 Sep 2005 14:05:47 +0000 (14:05 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 12 Sep 2005 14:05:47 +0000 (14:05 +0000)
[r6608]

ir/ana/irextbb.c

index 68fe2e0..7a9f71b 100644 (file)
@@ -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;
     }