From de783051855281a9fbc4ff617911cc55574ef3c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6tz=20Lindenmaier?= Date: Thu, 1 Aug 2002 17:26:19 +0000 Subject: [PATCH] Added test for optimization flag to mergin Jmp/Block combinations in dead node elimination. [r453] --- ir/ir/irgopt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ir/ir/irgopt.c b/ir/ir/irgopt.c index 1a25c139f..695abca7e 100644 --- a/ir/ir/irgopt.c +++ b/ir/ir/irgopt.c @@ -197,8 +197,9 @@ copy_preds (ir_node *n, void *env) { in array contained Bads. Now it's possible. We don't call optimize_in_place as it requires that the fields in ir_graph are set properly. */ - if (get_Block_n_cfgpreds(nn) == 1 - && get_irn_op(get_Block_cfgpred(nn, 0)) == op_Jmp) + if ((get_opt_control_flow()) && + (get_Block_n_cfgpreds(nn) == 1) && + (get_irn_op(get_Block_cfgpred(nn, 0)) == op_Jmp)) exchange(nn, get_nodes_Block(get_Block_cfgpred(nn, 0))); } else if (get_irn_opcode(n) == iro_Phi) { /* Don't copy node if corresponding predecessor in block is Bad. -- 2.20.1