Lines Matching refs:MP

962   auto *MP = dyn_cast<MemoryPhi>(V);  in getBlockForValue()  local
963 assert(MP && "Should have been an instruction or a MemoryPhi"); in getBlockForValue()
964 return MP->getBlock(); in getBlockForValue()
1653 if (auto *MP = dyn_cast<MemoryPhi>(From)) { in setMemoryClass() local
1654 OldClass->memory_erase(MP); in setMemoryClass()
1655 NewClass->memory_insert(MP); in setMemoryClass()
2899 const MemoryPhi *MP = cast<MemoryPhi>(&Def); in initializeCongruenceClasses() local
2900 TOPClass->memory_insert(MP); in initializeCongruenceClasses()
2901 MemoryPhiState.insert({MP, MPS_TOP}); in initializeCongruenceClasses()
3034 void NewGVN::valueNumberMemoryPhi(MemoryPhi *MP) { in valueNumberMemoryPhi() argument
3039 const BasicBlock *PHIBlock = MP->getBlock(); in valueNumberMemoryPhi()
3040 auto Filtered = make_filter_range(MP->operands(), [&](const Use &U) { in valueNumberMemoryPhi()
3041 return cast<MemoryAccess>(U) != MP && in valueNumberMemoryPhi()
3043 ReachableEdges.count({MP->getIncomingBlock(U), PHIBlock}); in valueNumberMemoryPhi()
3049 if (setMemoryClass(MP, TOPClass)) in valueNumberMemoryPhi()
3050 markMemoryUsersTouched(MP); in valueNumberMemoryPhi()
3081 AllEqual ? getMemoryClass(AllSameValue) : ensureLeaderOfMemoryClass(MP); in valueNumberMemoryPhi()
3082 auto OldState = MemoryPhiState.lookup(MP); in valueNumberMemoryPhi()
3085 MemoryPhiState[MP] = NewState; in valueNumberMemoryPhi()
3086 if (setMemoryClass(MP, CC) || OldState != NewState) in valueNumberMemoryPhi()
3087 markMemoryUsersTouched(MP); in valueNumberMemoryPhi()
3161 auto *MP = cast<MemoryPhi>(EndDef); in singleReachablePHIPath() local
3163 return ReachableEdges.count({MP->getIncomingBlock(U), MP->getBlock()}); in singleReachablePHIPath()
3166 make_filter_range(MP->operands(), ReachableOperandPred); in singleReachablePHIPath()
3405 if (auto *MP = dyn_cast<MemoryPhi>(V)) { in iterateTouchedInstructions() local
3406 LLVM_DEBUG(dbgs() << "Processing MemoryPhi " << *MP << "\n"); in iterateTouchedInstructions()
3407 valueNumberMemoryPhi(MP); in iterateTouchedInstructions()