Lines Matching refs:NewMIs

1406         SmallVector<MachineInstr *, 2> NewMIs;  in tryInstructionTransform()  local
1409 /*UnfoldStore=*/false, NewMIs)) { in tryInstructionTransform()
1413 assert(NewMIs.size() == 2 && in tryInstructionTransform()
1416 NewMIs[1]->addRegisterKilled(Reg, TRI); in tryInstructionTransform()
1420 MBB->insert(mi, NewMIs[0]); in tryInstructionTransform()
1421 MBB->insert(mi, NewMIs[1]); in tryInstructionTransform()
1422 DistanceMap.insert(std::make_pair(NewMIs[0], Dist++)); in tryInstructionTransform()
1423 DistanceMap.insert(std::make_pair(NewMIs[1], Dist)); in tryInstructionTransform()
1425 LLVM_DEBUG(dbgs() << "2addr: NEW LOAD: " << *NewMIs[0] in tryInstructionTransform()
1426 << "2addr: NEW INST: " << *NewMIs[1]); in tryInstructionTransform()
1430 NewMIs[1]->findRegisterDefOperandIdx(regA, /*TRI=*/nullptr); in tryInstructionTransform()
1432 NewMIs[1]->findRegisterUseOperandIdx(regB, /*TRI=*/nullptr); in tryInstructionTransform()
1433 MachineBasicBlock::iterator NewMI = NewMIs[1]; in tryInstructionTransform()
1439 if (NewMIs[1]->getOperand(NewSrcIdx).isKill()) { in tryInstructionTransform()
1447 if (NewMIs[0]->killsRegister(MO.getReg(), /*TRI=*/nullptr)) in tryInstructionTransform()
1448 LV->replaceKillInstruction(MO.getReg(), MI, *NewMIs[0]); in tryInstructionTransform()
1450 assert(NewMIs[1]->killsRegister(MO.getReg(), in tryInstructionTransform()
1453 LV->replaceKillInstruction(MO.getReg(), MI, *NewMIs[1]); in tryInstructionTransform()
1457 if (NewMIs[1]->registerDefIsDead(MO.getReg(), in tryInstructionTransform()
1459 LV->addVirtualRegisterDead(MO.getReg(), *NewMIs[1]); in tryInstructionTransform()
1461 assert(NewMIs[0]->registerDefIsDead(MO.getReg(), in tryInstructionTransform()
1464 LV->addVirtualRegisterDead(MO.getReg(), *NewMIs[0]); in tryInstructionTransform()
1469 LV->addVirtualRegisterKilled(Reg, *NewMIs[1]); in tryInstructionTransform()
1487 MachineBasicBlock::iterator Begin(NewMIs[0]); in tryInstructionTransform()
1488 MachineBasicBlock::iterator End(NewMIs[1]); in tryInstructionTransform()
1492 mi = NewMIs[1]; in tryInstructionTransform()
1498 NewMIs[0]->eraseFromParent(); in tryInstructionTransform()
1499 NewMIs[1]->eraseFromParent(); in tryInstructionTransform()
1500 DistanceMap.erase(NewMIs[0]); in tryInstructionTransform()
1501 DistanceMap.erase(NewMIs[1]); in tryInstructionTransform()