Remove the successor probabilities normalization in tail duplication pass.
[oota-llvm.git] / lib / CodeGen / InterferenceCache.cpp
index fd5749bfefa069391ee36d25bdbba5966ac6ff97..f8cc24724580a1492ee06ef79ae0394670c79ccf 100644 (file)
@@ -144,7 +144,8 @@ void InterferenceCache::Entry::update(unsigned MBBNum) {
     PrevPos = Start;
   }
 
-  MachineFunction::const_iterator MFI = MF->getBlockNumbered(MBBNum);
+  MachineFunction::const_iterator MFI =
+      MF->getBlockNumbered(MBBNum)->getIterator();
   BlockInterference *BI = &Blocks[MBBNum];
   ArrayRef<SlotIndex> RegMaskSlots;
   ArrayRef<const uint32_t*> RegMaskBits;