Remove LIS::isAllocatable() and isReserved() helpers.
[oota-llvm.git] / lib / CodeGen / CalcSpillWeights.cpp
index bc5258ef7d8051acf8d6555e92c07a20286b799c..dee339a458632eadb2ddd5487bbaf0650113ad5c 100644 (file)
@@ -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)