beware of loops without Phis
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 22 Oct 2007 14:14:22 +0000 (14:14 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 22 Oct 2007 14:14:22 +0000 (14:14 +0000)
[r16307]

ir/opt/ldstopt.c

index b660daa..00fa550 100644 (file)
@@ -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;