diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-10-15 22:14:34 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-10-15 22:14:34 +0000 |
commit | 790047620a8f31cee1841c06c9e5e7688166ad93 (patch) | |
tree | 33ca0340b0d86f75679a10b699d4a71d867561de /lib/CodeGen/CalcSpillWeights.cpp | |
parent | 3a1c35afbd02b012690c35ec827424c27792ec3f (diff) | |
download | llvm-790047620a8f31cee1841c06c9e5e7688166ad93.tar.gz llvm-790047620a8f31cee1841c06c9e5e7688166ad93.tar.bz2 llvm-790047620a8f31cee1841c06c9e5e7688166ad93.tar.xz |
Remove LIS::isAllocatable() and isReserved() helpers.
All callers can simply use the corresponding MRI functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CalcSpillWeights.cpp')
-rw-r--r-- | lib/CodeGen/CalcSpillWeights.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CalcSpillWeights.cpp b/lib/CodeGen/CalcSpillWeights.cpp index bc5258ef7d..dee339a458 100644 --- a/lib/CodeGen/CalcSpillWeights.cpp +++ b/lib/CodeGen/CalcSpillWeights.cpp @@ -164,7 +164,7 @@ void VirtRegAuxInfo::CalculateWeightAndHint(LiveInterval &li) { continue; float hweight = Hint[hint] += weight; if (TargetRegisterInfo::isPhysicalRegister(hint)) { - if (hweight > bestPhys && LIS.isAllocatable(hint)) + if (hweight > bestPhys && mri.isAllocatable(hint)) bestPhys = hweight, hintPhys = hint; } else { if (hweight > bestVirt) |