- insert_after = pred_bl;
- do {
- insert_after = sched_prev(insert_after);
- } while (is_cfop(insert_after));
- sched_add_after(insert_after, perm);
+ ir_node *const schedpoint = be_get_end_of_block_insertion_point(pred_bl);
+ sched_add_before(schedpoint, perm);