================
@@ -2791,8 +2963,12 @@ MCRegister RAGreedy::selectOrSplitImpl(const
LiveInterval &VirtReg,
if (CSRCost.getFrequency() &&
EvictAdvisor->getUnusedCalleeSavedReg(VirtReg, PhysReg) &&
NewVRegs.empty()) {
- MCRegister CSRReg = tryAssignCSRFirstTime(VirtReg, Order, PhysReg,
- CostPerUseLimit, NewVRegs);
+ MCRegister CSRReg =
+ TRI->enableCSRFirstTimeMinCost(*MF)
----------------
wangpc-pp wrote:
Can this be the default behavior?
https://github.com/llvm/llvm-project/pull/239530
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits