[llvm] [RISCV] Override default sched policy (PR #115445)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 8 10:28:53 PST 2024
================
@@ -199,3 +200,25 @@ unsigned RISCVSubtarget::getMinimumJumpTableEntries() const {
? RISCVMinimumJumpTableEntries
: TuneInfo->MinimumJumpTableEntries;
}
+
+void RISCVSubtarget::overrideSchedPolicy(MachineSchedPolicy &Policy,
+ unsigned NumRegionInstrs) const {
+ // Do bidirectional scheduling since it provides a more balanced scheduling
+ // leading to better performance. This will increase compile time.
+ Policy.OnlyTopDown = false;
----------------
preames wrote:
It does, but if you look at the other targets they use the same idiom and having both side by side is more readable (IMO).
https://github.com/llvm/llvm-project/pull/115445
More information about the llvm-commits
mailing list