Lines Matching defs:MP
278 for (auto &MP : InsertedPHIs)
279 if (MemoryPhi *Phi = cast_or_null<MemoryPhi>(MP))
284 // Set every incoming edge {BB, MP->getBlock()} of MemoryPhi MP to NewDef.
285 static void setMemoryPhiValueForBlock(MemoryPhi *MP, const BasicBlock *BB,
289 int i = MP->getBasicBlockIndex(BB);
293 for (const BasicBlock *BlockBB : llvm::drop_begin(MP->blocks(), i)) {
296 MP->setIncomingValue(i, NewDef);
447 for (auto &MP : InsertedPHIs) {
448 MemoryPhi *Phi = dyn_cast_or_null<MemoryPhi>(MP);
454 for (const auto &MP : ExistingPhis) {
455 MemoryPhi *Phi = dyn_cast_or_null<MemoryPhi>(MP);
487 if (auto *MP = MSSA->getMemoryAccess(S))
488 setMemoryPhiValueForBlock(MP, NewDef->getBlock(), NewDef);
517 if (auto *MP = MSSA->getMemoryAccess(S))
518 setMemoryPhiValueForBlock(MP, FixupBlock, NewDef);
556 static MemoryAccess *onlySingleValue(MemoryPhi *MP) {
559 for (auto &Arg : MP->operands()) {
1296 if (MemoryPhi *MP = dyn_cast<MemoryPhi>(MA)) {
1302 NewDefTarget = onlySingleValue(MP);
1303 assert((NewDefTarget || MP->use_empty()) &&
1332 if (MemoryPhi *MP = dyn_cast<MemoryPhi>(U.getUser()))
1333 PhisToCheck.insert(MP);
1351 if (MemoryPhi *MP =
1353 tryRemoveTrivialPhi(MP);
1365 if (MemoryPhi *MP = MSSA->getMemoryAccess(Succ)) {
1366 MP->unorderedDeleteIncomingBlock(BB);
1367 tryRemoveTrivialPhi(MP);