Commit b1eebb7c authored by Michael Beck's avatar Michael Beck
Browse files

- remove NoMem from keep list

[r24578]
parent cbaca63d
......@@ -443,7 +443,7 @@ void set_End_keepalives(ir_node *end, int n, ir_node *in[]);
/** Remove irn from the keep-alive set. */
void remove_End_keepalive(ir_node *end, ir_node *irn);
/* Remove Bads and doublets from the keep-alive set. */
/* Remove Bads, NoMem and doublets from the keep-alive set. */
void remove_End_Bads_and_doublets(ir_node *end);
/** Some parts of the End node are allocated separately -- their memory
......
......@@ -923,7 +923,7 @@ found:
ARR_RESIZE(ir_node *, end->in, (n - 1) + 1 + END_KEEPALIVE_OFFSET);
}
/* remove Bads and doublets from the keep-alive set */
/* remove Bads, NoMems and doublets from the keep-alive set */
void remove_End_Bads_and_doublets(ir_node *end) {
pset_new_t keeps;
int idx, n = get_End_n_keepalives(end);
......@@ -938,7 +938,7 @@ void remove_End_Bads_and_doublets(ir_node *end) {
for (idx = n - 1; idx >= 0; --idx) {
ir_node *ka = get_End_keepalive(end, idx);
if (is_Bad(ka) || pset_new_contains(&keeps, ka)) {
if (is_Bad(ka) || is_NoMem(ka) || pset_new_contains(&keeps, ka)) {
/* remove the edge */
edges_notify_edge(end, idx, NULL, ka, irg);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment