Commit cb3fecd9 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

amd64: Use sched_foreach_safe().

parent 574d27a8
......@@ -257,12 +257,9 @@ static void amd64_finish_irg_walker(ir_node *const block, void *const env)
(void) env;
/* Insert should_be_same copies. */
for (ir_node *irn = sched_first(block), *next; !sched_is_end(irn);
irn = next) {
next = sched_next(irn);
if (is_amd64_irn(irn)) {
sched_foreach_safe(block, irn) {
if (is_amd64_irn(irn))
assure_should_be_same_requirements(irn);
}
}
}
......
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