Lines Matching refs:NewMIs
1307 SmallVector<MachineInstr *, 2> NewMIs; in tryInstructionTransform() local
1310 /*UnfoldStore=*/false, NewMIs)) { in tryInstructionTransform()
1314 assert(NewMIs.size() == 2 && in tryInstructionTransform()
1317 NewMIs[1]->addRegisterKilled(Reg, TRI); in tryInstructionTransform()
1321 MBB->insert(mi, NewMIs[0]); in tryInstructionTransform()
1322 MBB->insert(mi, NewMIs[1]); in tryInstructionTransform()
1323 DistanceMap.insert(std::make_pair(NewMIs[0], Dist++)); in tryInstructionTransform()
1324 DistanceMap.insert(std::make_pair(NewMIs[1], Dist)); in tryInstructionTransform()
1326 LLVM_DEBUG(dbgs() << "2addr: NEW LOAD: " << *NewMIs[0] in tryInstructionTransform()
1327 << "2addr: NEW INST: " << *NewMIs[1]); in tryInstructionTransform()
1330 unsigned NewDstIdx = NewMIs[1]->findRegisterDefOperandIdx(regA); in tryInstructionTransform()
1331 unsigned NewSrcIdx = NewMIs[1]->findRegisterUseOperandIdx(regB); in tryInstructionTransform()
1332 MachineBasicBlock::iterator NewMI = NewMIs[1]; in tryInstructionTransform()
1338 if (NewMIs[1]->getOperand(NewSrcIdx).isKill()) { in tryInstructionTransform()
1346 if (NewMIs[0]->killsRegister(MO.getReg())) in tryInstructionTransform()
1347 LV->replaceKillInstruction(MO.getReg(), MI, *NewMIs[0]); in tryInstructionTransform()
1349 assert(NewMIs[1]->killsRegister(MO.getReg()) && in tryInstructionTransform()
1351 LV->replaceKillInstruction(MO.getReg(), MI, *NewMIs[1]); in tryInstructionTransform()
1355 if (NewMIs[1]->registerDefIsDead(MO.getReg())) in tryInstructionTransform()
1356 LV->addVirtualRegisterDead(MO.getReg(), *NewMIs[1]); in tryInstructionTransform()
1358 assert(NewMIs[0]->registerDefIsDead(MO.getReg()) && in tryInstructionTransform()
1360 LV->addVirtualRegisterDead(MO.getReg(), *NewMIs[0]); in tryInstructionTransform()
1365 LV->addVirtualRegisterKilled(Reg, *NewMIs[1]); in tryInstructionTransform()
1383 MachineBasicBlock::iterator Begin(NewMIs[0]); in tryInstructionTransform()
1384 MachineBasicBlock::iterator End(NewMIs[1]); in tryInstructionTransform()
1388 mi = NewMIs[1]; in tryInstructionTransform()
1394 NewMIs[0]->eraseFromParent(); in tryInstructionTransform()
1395 NewMIs[1]->eraseFromParent(); in tryInstructionTransform()
1396 DistanceMap.erase(NewMIs[0]); in tryInstructionTransform()
1397 DistanceMap.erase(NewMIs[1]); in tryInstructionTransform()