From 36b5e2c7b7ec3e12264f01fef6ecca8c5a01712a Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 12 Jun 2006 14:48:44 +0000 Subject: [PATCH] local_optimize_df(): when running the wait queue, check if a node is already dead before optimizing it ... This is needed due to the changes of the exchange() semantics, which now kills the old node in both (ir_edges enabled and not) modes. [r7915] --- ir/ir/irgopt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ir/ir/irgopt.c b/ir/ir/irgopt.c index 53829b59f..0dbdff611 100644 --- a/ir/ir/irgopt.c +++ b/ir/ir/irgopt.c @@ -177,7 +177,8 @@ void optimize_graph_df(ir_graph *irg) { /* finish the wait queue */ while (! pdeq_empty(waitq)) { ir_node *n = pdeq_getl(waitq); - opt_walker(n, waitq); + if (! is_Bad(n)) + opt_walker(n, waitq); } del_pdeq(waitq); -- 2.20.1