Lines Matching refs:MemoryPhi
470 assert(isa<MemoryPhi>(MA)); in checkClobberSanity()
493 assert((isa<MemoryPhi>(ClobberAt) || FoundClobber) && in checkClobberSanity()
542 const MemoryAccess *getWalkTarget(const MemoryPhi *From) const { in getWalkTarget()
607 assert(isa<MemoryPhi>(Desc.Last) && in walkToPhiOrClobber()
612 void addSearches(MemoryPhi *Phi, SmallVectorImpl<ListIndex> &PausedSearches, in addSearches()
715 addSearches(cast<MemoryPhi>(Res.Result), PausedSearches, PathIndex); in getBlockingAccess()
790 OptznResult tryOptimizePhi(MemoryPhi *Phi, MemoryAccess *Start, in tryOptimizePhi()
819 MemoryPhi *Current = Phi; in tryOptimizePhi()
927 auto *DefChainPhi = cast<MemoryPhi>(DefChainEnd); in tryOptimizePhi()
981 OptznResult OptRes = tryOptimizePhi(cast<MemoryPhi>(FirstDesc.Last), in findClobber()
1119 if (It == PerBlockAccesses.end() || !isa<MemoryPhi>(It->second->front())) in renameSuccessorPhis()
1122 auto *Phi = cast<MemoryPhi>(&Accesses->front()); in renameSuccessorPhis()
1227 if (It == PerBlockAccesses.end() || !isa<MemoryPhi>(It->second->front())) in markUnreachableAsLiveOnEntry()
1230 auto *Phi = cast<MemoryPhi>(&Accesses->front()); in markUnreachableAsLiveOnEntry()
1453 if (isa<MemoryPhi>(VersionStack[UpperBound])) { in optimizeUsesInBlock()
1628 if (isa<MemoryPhi>(NewAccess)) { in insertIntoListsForBlock()
1634 *Accesses, [](const MemoryAccess &MA) { return isa<MemoryPhi>(MA); }); in insertIntoListsForBlock()
1639 *Defs, [](const MemoryAccess &MA) { return isa<MemoryPhi>(MA); }); in insertIntoListsForBlock()
1705 if (isa<MemoryPhi>(What)) { in moveTo()
1719 MemoryPhi *MemorySSA::createMemoryPhi(BasicBlock *BB) { in createMemoryPhi()
1721 MemoryPhi *Phi = new MemoryPhi(BB->getContext(), BB, NextID++); in createMemoryPhi()
1825 const auto *MP = cast<MemoryPhi>(Replacee); in dominatesUse()
1920 if (MemoryPhi *Phi = getMemoryAccess(&BB)) { in verifyPrevDefInPhis()
2005 MemoryPhi *Phi = getMemoryAccess(&B); in verifyOrderingDominationAndDefUses()
2164 if (MemoryPhi *MP = dyn_cast<MemoryPhi>(Dominatee.getUser())) { in dominates()
2180 case MemoryPhiVal: return static_cast<const MemoryPhi *>(this)->print(OS); in print()
2210 void MemoryPhi::print(raw_ostream &OS) const { in print()
2445 if (isa<MemoryPhi>(StartingAccess)) in getClobberingMemoryAccessBase()
2545 if (SkipSelf && isa<MemoryPhi>(OptimizedAccess) && in getClobberingMemoryAccessBase()
2573 void MemoryPhi::deleteMe(DerivedUser *Self) { in deleteMe()
2574 delete static_cast<MemoryPhi *>(Self); in deleteMe()