[llvm] [RegAlloc][RISCV] Increase the spill weight by target factor (PR #113675)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 2 09:15:47 PST 2024


================
@@ -803,6 +803,11 @@ RISCVRegisterInfo::getRegisterCostTableIndex(const MachineFunction &MF) const {
              : 0;
 }
 
+unsigned
+RISCVRegisterInfo::getSpillWeightFactor(const TargetRegisterClass *RC) const {
+  return getRegClassWeight(RC).RegWeight;
----------------
arsenm wrote:

Yes. The opt-out is just use a factor of 1

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


More information about the llvm-commits mailing list