llvm.org GIT mirror llvm / f3044fe
[RISCV][NFC] Convert some MachineBaiscBlock::iterator(MI) to MI.getIterator() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355864 91177308-0d34-0410-b5e6-96231b3b80d8 Alex Bradbury 1 year, 8 months ago
2 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
812812 F->insert(I, IfFalseMBB);
813813 F->insert(I, TailMBB);
814814 // Move all remaining instructions to TailMBB.
815 TailMBB->splice(TailMBB->begin(), HeadMBB,
816 std::next(MachineBasicBlock::iterator(MI)), HeadMBB->end());
815 TailMBB->splice(TailMBB->begin(), HeadMBB, std::next(MI.getIterator()),
816 HeadMBB->end());
817817 // Update machine-CFG edges by transferring all successors of the current
818818 // block to the new block which will contain the Phi node for the select.
819819 TailMBB->transferSuccessorsAndUpdatePHIs(HeadMBB);
381381 .addMBB(&DestBB, RISCVII::MO_LO);
382382
383383 RS->enterBasicBlockEnd(MBB);
384 unsigned Scav = RS->scavengeRegisterBackwards(
385 RISCV::GPRRegClass, MachineBasicBlock::iterator(LuiMI), false, 0);
384 unsigned Scav = RS->scavengeRegisterBackwards(RISCV::GPRRegClass,
385 LuiMI.getIterator(), false, 0);
386386 MRI.replaceRegWith(ScratchReg, Scav);
387387 MRI.clearVirtRegs();
388388 RS->setRegUsed(Scav);