Adapt cfopt to Bads with modes
[libfirm] / ir / opt / ldstopt.c
index f6f4f2f..c9f84c8 100644 (file)
@@ -1847,10 +1847,8 @@ static void move_loads_out_of_loops(scc *pscc, loop_env *env)
                        }
                }
        }
-
-       /* Within unreachable code, there might be memory loops without Phis. */
-       if (phi_list == NULL)
-               return;
+       /* no Phis no fun */
+       assert(phi_list != NULL && "DFS found a loop without Phi");
 
        /* for now, we cannot handle more than one input (only reducible cf) */
        if (phi_list->next != NULL)