Slightly change the meaning of the reMaterialize target hook when the original
[oota-llvm.git] / lib / CodeGen / PreAllocSplitting.cpp
index 96e7327a7eb71888d918e96a48ef2c41689b136a..42d404de1061200262088684a89d28cd350e3fdf 100644 (file)
@@ -854,7 +854,7 @@ bool PreAllocSplitting::Rematerialize(unsigned VReg, VNInfo* ValNo,
   if (KillPt == DefMI->getParent()->end())
     return false;
   
-  TII->reMaterialize(MBB, RestorePt, VReg, 0, DefMI, TRI);
+  TII->reMaterialize(MBB, RestorePt, VReg, 0, DefMI, *TRI);
   SlotIndex RematIdx = LIs->InsertMachineInstrInMaps(prior(RestorePt));
   
   ReconstructLiveInterval(CurrLI);