MatzeB accepted this revision. MatzeB added a comment. This revision is now accepted and ready to land. LGTM. If possible please also change the code inside MachineScheduler.cpp to use the new functions! https://reviews.llvm.org/D23678