Lines Matching refs:MemoryPhi
96 MemoryPhi *Phi = dyn_cast_or_null<MemoryPhi>(MSSA->getMemoryAccess(BB)); in getPreviousDefRecursive()
199 if (MemoryPhi *UsePhi = dyn_cast<MemoryPhi>(&*U)) in recursePhi()
209 MemoryAccess *MemorySSAUpdater::tryRemoveTrivialPhi(MemoryPhi *Phi) { in tryRemoveTrivialPhi()
215 MemoryAccess *MemorySSAUpdater::tryRemoveTrivialPhi(MemoryPhi *Phi, in tryRemoveTrivialPhi()
285 if (MemoryPhi *Phi = cast_or_null<MemoryPhi>(MP)) in insertUse()
291 static void setMemoryPhiValueForBlock(MemoryPhi *MP, const BasicBlock *BB, in setMemoryPhiValueForBlock()
321 !(isa<MemoryPhi>(DefBefore) && in insertDef()
375 if (const auto *RealPHI = cast_or_null<MemoryPhi>(VH)) in insertDef()
381 SmallVector<AssertingVH<MemoryPhi>, 4> NewInsertedPHIs; in insertDef()
450 MemoryPhi *Phi = dyn_cast_or_null<MemoryPhi>(MP); in insertDef()
457 MemoryPhi *Phi = dyn_cast_or_null<MemoryPhi>(MP); in insertDef()
476 if (MemoryPhi *Phi = dyn_cast<MemoryPhi>(NewDef)) in fixupDefs()
503 assert(!isa<MemoryPhi>(FirstDef) && in fixupDefs()
535 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(To)) { in removeEdge()
543 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(To)) { in removeDuplicatePhiEdgesBetween()
559 static MemoryAccess *onlySingleValue(MemoryPhi *MP) { in onlySingleValue()
600 MemoryPhi *DefPhi = cast<MemoryPhi>(InsnDefining); in getNewDefiningAccessForClone()
685 auto FixPhiIncomingValues = [&](MemoryPhi *Phi, MemoryPhi *NewPhi) { in updateForClonedLoop()
720 MemoryPhi *IncPhi = cast<MemoryPhi>(IncomingAccess); in updateForClonedLoop()
742 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(BB)) { in updateForClonedLoop()
743 MemoryPhi *NewPhi = MSSA->createMemoryPhi(NewBlock); in updateForClonedLoop()
754 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(BB)) in updateForClonedLoop()
756 FixPhiIncomingValues(MPhi, cast<MemoryPhi>(NewPhi)); in updateForClonedLoop()
770 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(BB)) in updateForClonedBlockIntoPred()
1024 MemoryPhi *NewPhi = MSSA->getMemoryAccess(BB); in applyInsertUpdates()
1086 if (auto *MPhi = cast_or_null<MemoryPhi>(VH)) in applyInsertUpdates()
1098 SmallSetVector<MemoryPhi *, 4> PhisToFill; in applyInsertUpdates()
1135 if (MemoryPhi *UsrPhi = dyn_cast<MemoryPhi>(Usr)) { in applyInsertUpdates()
1165 if (MemoryPhi *PhiUser = dyn_cast<MemoryPhi>(U)) in moveTo()
1238 if (auto *Phi = dyn_cast<MemoryPhi>(&*Defs->begin())) in moveAllAccesses()
1249 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(Succ)) in moveAllAfterSpliceBlocks()
1259 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(Succ)) in moveAllAfterMergeBlocks()
1268 MemoryPhi *Phi = MSSA->getMemoryAccess(Old); in wireOldPredecessorsToNewImmediatePredecessor()
1278 MemoryPhi *NewPhi = MSSA->createMemoryPhi(New); in wireOldPredecessorsToNewImmediatePredecessor()
1306 if (MemoryPhi *MP = dyn_cast<MemoryPhi>(MA)) { in removeMemoryAccess()
1319 SmallSetVector<MemoryPhi *, 4> PhisToCheck; in removeMemoryAccess()
1342 if (MemoryPhi *MP = dyn_cast<MemoryPhi>(U.getUser())) in removeMemoryAccess()
1361 if (MemoryPhi *MP = in removeMemoryAccess()
1362 cast_or_null<MemoryPhi>(PhisToOptimize.pop_back_val())) in removeMemoryAccess()
1375 if (MemoryPhi *MP = MSSA->getMemoryAccess(Succ)) { in removeBlocks()
1401 if (auto *MPhi = cast_or_null<MemoryPhi>(VH)) in tryRemoveTrivialPhis()
1417 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(Successor)) { in changeToUnreachable()