From 1d0076588e6b7ca312ceda5cefd3fadc5a639031 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 22 Oct 2007 14:14:22 +0000 Subject: [PATCH] beware of loops without Phis [r16307] --- ir/opt/ldstopt.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.20.1