Lines Matching defs:MP
960 auto *MP = dyn_cast<MemoryPhi>(V);
961 assert(MP && "Should have been an instruction or a MemoryPhi");
962 return MP->getBlock();
1673 if (auto *MP = dyn_cast<MemoryPhi>(From)) {
1674 OldClass->memory_erase(MP);
1675 NewClass->memory_insert(MP);
2903 const MemoryPhi *MP = cast<MemoryPhi>(&Def);
2904 TOPClass->memory_insert(MP);
2905 MemoryPhiState.insert({MP, MPS_TOP});
3037 void NewGVN::valueNumberMemoryPhi(MemoryPhi *MP) {
3042 const BasicBlock *PHIBlock = MP->getBlock();
3043 auto Filtered = make_filter_range(MP->operands(), [&](const Use &U) {
3044 return cast<MemoryAccess>(U) != MP &&
3046 ReachableEdges.count({MP->getIncomingBlock(U), PHIBlock});
3052 if (setMemoryClass(MP, TOPClass))
3053 markMemoryUsersTouched(MP);
3084 AllEqual ? getMemoryClass(AllSameValue) : ensureLeaderOfMemoryClass(MP);
3085 auto OldState = MemoryPhiState.lookup(MP);
3088 MemoryPhiState[MP] = NewState;
3089 if (setMemoryClass(MP, CC) || OldState != NewState)
3090 markMemoryUsersTouched(MP);
3164 auto *MP = cast<MemoryPhi>(EndDef);
3166 return ReachableEdges.count({MP->getIncomingBlock(U), MP->getBlock()});
3169 make_filter_range(MP->operands(), ReachableOperandPred);
3412 if (auto *MP = dyn_cast<MemoryPhi>(V)) {
3413 LLVM_DEBUG(dbgs() << "Processing MemoryPhi " << *MP << "\n");
3414 valueNumberMemoryPhi(MP);