Move register allocation preference (or hint) from LiveInterval to MachineRegisterInf...
[oota-llvm.git] / lib / CodeGen / RegAllocPBQP.cpp
index 61450a7cca7c3332198a88b2c28c839f79fe36d5..d07006d7e1885160f7e4df882b599ee04b5dc236 100644 (file)
@@ -733,8 +733,7 @@ void PBQPRegAlloc::finalizeAlloc() const {
          itr != end; ++itr) {
     LiveInterval *li = *itr;
 
-    unsigned physReg = li->preference;
-
+    unsigned physReg = vrm->getRegAllocPref(li->reg);
     if (physReg == 0) {
       const TargetRegisterClass *liRC = mri->getRegClass(li->reg);
       physReg = *liRC->allocation_order_begin(*mf);