From: Michael Beck Date: Mon, 22 Oct 2007 14:14:22 +0000 (+0000) Subject: beware of loops without Phis X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=1d0076588e6b7ca312ceda5cefd3fadc5a639031;p=libfirm beware of loops without Phis [r16307] --- diff --git a/ir/opt/ldstopt.c b/ir/opt/ldstopt.c index b660daaa6..00fa55049 100644 --- a/ir/opt/ldstopt.c +++ b/ir/opt/ldstopt.c @@ -1334,6 +1334,9 @@ static void move_loads_in_loops(scc *pscc, loop_env *env) { } } } + /* no Phis no fun */ + if (phi_list == NULL) + return; for (load = pscc->head; load; load = next) { ir_mode *load_mode;