ir_nodeset_insert(&entry->copies, new_ck);
/* find scheduling point */
- for (sched_pt = sched_next(ref_mode_T); be_is_Keep(sched_pt) || be_is_CopyKeep(sched_pt); sched_pt = sched_next(sched_pt)) {
+ do {
/* just walk along the schedule until a non-Keep/CopyKeep node is found */
- }
+ sched_pt = sched_next(ref_mode_T);
+ } while (be_is_Keep(sched_pt) || be_is_CopyKeep(sched_pt));
sched_add_before(sched_pt, new_ck);
DBG((cenv->dbg, LEVEL_1, "created %+F, scheduled before %+F\n", new_ck, sched_pt));