From 663ac7043899977920a23a0241196cebc6be4b42 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 30 Jul 2008 00:59:31 +0000 Subject: [PATCH] - do not kill the start block when folding control flow [r20778] --- ir/opt/combo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.20.1