diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/CodeGen/VirtRegMap.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/CodeGen/VirtRegMap.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/llvm-project/llvm/lib/CodeGen/VirtRegMap.cpp b/contrib/llvm-project/llvm/lib/CodeGen/VirtRegMap.cpp index a816bd5b52de..48f4ee29fbe9 100644 --- a/contrib/llvm-project/llvm/lib/CodeGen/VirtRegMap.cpp +++ b/contrib/llvm-project/llvm/lib/CodeGen/VirtRegMap.cpp @@ -261,7 +261,7 @@ bool VirtRegRewriter::runOnMachineFunction(MachineFunction &fn) {    Indexes = &getAnalysis<SlotIndexes>();    LIS = &getAnalysis<LiveIntervals>();    VRM = &getAnalysis<VirtRegMap>(); -  DebugVars = getAnalysisIfAvailable<LiveDebugVariables>(); +  DebugVars = &getAnalysis<LiveDebugVariables>();    LLVM_DEBUG(dbgs() << "********** REWRITE VIRTUAL REGISTERS **********\n"                      << "********** Function: " << MF->getName() << '\n');    LLVM_DEBUG(VRM->dump()); @@ -275,7 +275,7 @@ bool VirtRegRewriter::runOnMachineFunction(MachineFunction &fn) {    // Rewrite virtual registers.    rewrite(); -  if (DebugVars && ClearVirtRegs) { +  if (ClearVirtRegs) {      // Write out new DBG_VALUE instructions.      // We only do this if ClearVirtRegs is specified since this should be the @@ -311,8 +311,8 @@ void VirtRegRewriter::addLiveInsForSubRanges(const LiveInterval &LI,    }    // Check all mbb start positions between First and Last while -  // simulatenously advancing an iterator for each subrange. -  for (SlotIndexes::MBBIndexIterator MBBI = Indexes->findMBBIndex(First); +  // simultaneously advancing an iterator for each subrange. +  for (SlotIndexes::MBBIndexIterator MBBI = Indexes->getMBBLowerBound(First);         MBBI != Indexes->MBBIndexEnd() && MBBI->first <= Last; ++MBBI) {      SlotIndex MBBBegin = MBBI->first;      // Advance all subrange iterators so that their end position is just @@ -363,7 +363,7 @@ void VirtRegRewriter::addMBBLiveIns() {        // sorted by slot indexes.        SlotIndexes::MBBIndexIterator I = Indexes->MBBIndexBegin();        for (const auto &Seg : LI) { -        I = Indexes->advanceMBBIndex(I, Seg.start); +        I = Indexes->getMBBLowerBound(I, Seg.start);          for (; I != Indexes->MBBIndexEnd() && I->first < Seg.end; ++I) {            MachineBasicBlock *MBB = I->second;            MBB->addLiveIn(PhysReg);  | 
