From: Michael Beck Date: Wed, 30 Jul 2008 00:59:31 +0000 (+0000) Subject: - do not kill the start block when folding control flow X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=663ac7043899977920a23a0241196cebc6be4b42;p=libfirm - do not kill the start block when folding control flow [r20778] --- diff --git a/ir/opt/combo.c b/ir/opt/combo.c index 283d668db..5275e0a50 100644 --- a/ir/opt/combo.c +++ b/ir/opt/combo.c @@ -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;