projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adapt cfopt to Bads with modes
[libfirm]
/
ir
/
opt
/
ldstopt.c
diff --git
a/ir/opt/ldstopt.c
b/ir/opt/ldstopt.c
index
f6f4f2f
..
c9f84c8
100644
(file)
--- a/
ir/opt/ldstopt.c
+++ b/
ir/opt/ldstopt.c
@@
-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)
/* for now, we cannot handle more than one input (only reducible cf) */
if (phi_list->next != NULL)