summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Serrer <philipp@serrer.de>2018-02-06 18:24:44 +0100
committerPhilipp Serrer <philipp@serrer.de>2018-02-06 18:24:44 +0100
commitbadd5563bc1da67c84a4aa8b0af2aa2d7f980c0a (patch)
treed4626989dbf679c66250fde6ddf13cfb9c7d120d
parent971d07b30d276c06a20a5bddeaca8441bed6a61e (diff)
fixed bug with exchanging deleted leaders in combo opt
-rw-r--r--ir/opt/combo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ir/opt/combo.c b/ir/opt/combo.c
index 7df824b..81f07ea 100644
--- a/ir/opt/combo.c
+++ b/ir/opt/combo.c
@@ -3087,7 +3087,9 @@ static void apply_result(ir_node *irn, void *ctx)
}
}
}
- if (!non_strict_phi) {
+
+ // is_Deleted check maybe should be moved somewhere else..
+ if (!is_Deleted(leader) && !non_strict_phi) {
DB((dbg, LEVEL_1, "%+F from part%d is replaced by %+F\n", irn, node->part->nr, leader));
DBG_OPT_COMBO(irn, leader);
exchange_leader(irn, leader);