From fa1e732da6a912dadeba1985fd0270d4e3142b89 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 5 Nov 2007 16:05:11 +0000 Subject: [PATCH] we can't be sure that phis aren't used anymore when they're disposed [r16437] --- ir/be/bespillbelady.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir/be/bespillbelady.c b/ir/be/bespillbelady.c index 948278f6c..2bfa9decb 100644 --- a/ir/be/bespillbelady.c +++ b/ir/be/bespillbelady.c @@ -373,7 +373,7 @@ static void displace(workset_t *new_vals, int is_usage) //be_add_spill(senv, val, instr); } - if (! ir_nodeset_contains(&used, val)) { + if (!is_Phi(val) && ! ir_nodeset_contains(&used, val)) { workset_remove(ws_start, val); DBG((dbg, DBG_DECIDE, " (and removing %+F from start workset)\n", val)); } -- 2.20.1