- do not kill the start block when folding control flow
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 30 Jul 2008 00:59:31 +0000 (00:59 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 30 Jul 2008 00:59:31 +0000 (00:59 +0000)
[r20778]

ir/opt/combo.c

index 283d668..5275e0a 100644 (file)
@@ -1490,7 +1490,9 @@ static ir_node *get_leader(node_t *node) {
  * @param pred  the control flow exit
  */
 static int can_exchange(ir_node *pred) {
-       if (is_Jmp(pred))
+       if (is_Start(pred))
+               return 0;
+       else if (is_Jmp(pred))
                return 1;
        else if (get_irn_mode(pred) == mode_T) {
                int i, k;