Add two new calling conventions for runtime calls
[oota-llvm.git] / lib / CodeGen / CalcSpillWeights.cpp
index 4925c4db1e0a24198452c5d00b5a31e2d468a6d3..1a45de069ead25320bb0d13cf928e133b70eb8a8 100644 (file)
@@ -132,7 +132,7 @@ VirtRegAuxInfo::calculateSpillWeightAndHint(LiveInterval &li) {
       bool reads, writes;
       tie(reads, writes) = mi->readsWritesVirtualRegister(li.reg);
       weight = LiveIntervals::getSpillWeight(
-          writes, reads, MBFI.getBlockFreq(mi->getParent()));
+        writes, reads, &MBFI, mi);
 
       // Give extra weight to what looks like a loop induction variable update.
       if (writes && isExiting && LIS.isLiveOutOfMBB(li, mbb))