mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
Have getRegPressureSetLimit take a MachineFunction so that a
we can inspect the subtarget and function when computing values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231951 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -176,6 +176,6 @@ unsigned RegisterClassInfo::computePSetLimit(unsigned Idx) const {
|
||||
}
|
||||
compute(RC);
|
||||
unsigned NReserved = RC->getNumRegs() - getNumAllocatableRegs(RC);
|
||||
return TRI->getRegPressureSetLimit(Idx)
|
||||
- TRI->getRegClassWeight(RC).RegWeight * NReserved;
|
||||
return TRI->getRegPressureSetLimit(*MF, Idx) -
|
||||
TRI->getRegClassWeight(RC).RegWeight * NReserved;
|
||||
}
|
||||
|
Reference in New Issue
Block a user