[llvm] [MISched] Extend overridePostRASchedPolicy to support per-function scheduling direction (PR #149297)

Jon Roelofs via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 18 09:23:08 PDT 2025


================
@@ -16,6 +16,7 @@
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/ADT/StringRef.h"
+#include "llvm/CodeGen/MachineBasicBlock.h"
----------------
jroelofs wrote:

I think you should forward-declare `MachineBasicBlock`, instead of pulling in the header, since the only new uses of it are `const MachineBasicBlock &`s. That should save a bit of compile time across all of the TUs that use this header.

https://github.com/llvm/llvm-project/pull/149297


More information about the llvm-commits mailing list