Introduce line editor library.
[oota-llvm.git] / lib / CodeGen / RegAllocPBQP.cpp
index 88c8201fd4b25242ac0fc2b0256b1b8ea2247eaf..483f2e1ae8609eeed6fca19e67e878bba0eeb3b8 100644 (file)
@@ -348,8 +348,7 @@ PBQPRAProblem *PBQPBuilderWithCoalescing::build(MachineFunction *mf,
       // value plucked randomly out of the air.
 
       PBQP::PBQPNum cBenefit =
-        copyFactor * LiveIntervals::getSpillWeight(false, true,
-                                                   mbfi->getBlockFreq(mbb));
+        copyFactor * LiveIntervals::getSpillWeight(false, true, mbfi, mi);
 
       if (cp.isPhys()) {
         if (!mf->getRegInfo().isAllocatable(dst)) {