From: Matthias Braun Date: Mon, 5 Nov 2007 16:05:11 +0000 (+0000) Subject: we can't be sure that phis aren't used anymore when they're disposed X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=fa1e732da6a912dadeba1985fd0270d4e3142b89;p=libfirm we can't be sure that phis aren't used anymore when they're disposed [r16437] --- 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)); }