Lines Matching refs:MemoryPhi
89 MemoryPhi *Phi = dyn_cast_or_null<MemoryPhi>(MSSA->getMemoryAccess(BB)); in getPreviousDefRecursive()
192 if (MemoryPhi *UsePhi = dyn_cast<MemoryPhi>(&*U)) in recursePhi()
202 MemoryAccess *MemorySSAUpdater::tryRemoveTrivialPhi(MemoryPhi *Phi) { in tryRemoveTrivialPhi()
208 MemoryAccess *MemorySSAUpdater::tryRemoveTrivialPhi(MemoryPhi *Phi, in tryRemoveTrivialPhi()
279 if (MemoryPhi *Phi = cast_or_null<MemoryPhi>(MP)) in insertUse()
285 static void setMemoryPhiValueForBlock(MemoryPhi *MP, const BasicBlock *BB, in setMemoryPhiValueForBlock()
321 !(isa<MemoryPhi>(DefBefore) && in insertDef()
372 if (const auto *RealPHI = cast_or_null<MemoryPhi>(VH)) in insertDef()
378 SmallVector<AssertingVH<MemoryPhi>, 4> NewInsertedPHIs; in insertDef()
448 MemoryPhi *Phi = dyn_cast_or_null<MemoryPhi>(MP); in insertDef()
455 MemoryPhi *Phi = dyn_cast_or_null<MemoryPhi>(MP); in insertDef()
474 if (MemoryPhi *Phi = dyn_cast<MemoryPhi>(NewDef)) in fixupDefs()
500 assert(!isa<MemoryPhi>(FirstDef) && in fixupDefs()
532 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(To)) { in removeEdge()
540 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(To)) { in removeDuplicatePhiEdgesBetween()
556 static MemoryAccess *onlySingleValue(MemoryPhi *MP) { in onlySingleValue()
588 MemoryPhi *DefPhi = cast<MemoryPhi>(InsnDefining); in getNewDefiningAccessForClone()
673 auto FixPhiIncomingValues = [&](MemoryPhi *Phi, MemoryPhi *NewPhi) { in updateForClonedLoop()
714 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(BB)) { in updateForClonedLoop()
715 MemoryPhi *NewPhi = MSSA->createMemoryPhi(NewBlock); in updateForClonedLoop()
726 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(BB)) in updateForClonedLoop()
728 FixPhiIncomingValues(MPhi, cast<MemoryPhi>(NewPhi)); in updateForClonedLoop()
742 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(BB)) in updateForClonedBlockIntoPred()
1008 MemoryPhi *NewPhi = MSSA->getMemoryAccess(BB); in applyInsertUpdates()
1070 if (auto *MPhi = cast_or_null<MemoryPhi>(VH)) in applyInsertUpdates()
1082 SmallSetVector<MemoryPhi *, 4> PhisToFill; in applyInsertUpdates()
1115 if (MemoryPhi *UsrPhi = dyn_cast<MemoryPhi>(Usr)) { in applyInsertUpdates()
1145 if (MemoryPhi *PhiUser = dyn_cast<MemoryPhi>(U)) in moveTo()
1218 if (auto *Phi = dyn_cast<MemoryPhi>(&*Defs->begin())) in moveAllAccesses()
1229 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(Succ)) in moveAllAfterSpliceBlocks()
1239 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(Succ)) in moveAllAfterMergeBlocks()
1248 MemoryPhi *Phi = MSSA->getMemoryAccess(Old); in wireOldPredecessorsToNewImmediatePredecessor()
1258 MemoryPhi *NewPhi = MSSA->createMemoryPhi(New); in wireOldPredecessorsToNewImmediatePredecessor()
1286 if (MemoryPhi *MP = dyn_cast<MemoryPhi>(MA)) { in removeMemoryAccess()
1299 SmallSetVector<MemoryPhi *, 4> PhisToCheck; in removeMemoryAccess()
1322 if (MemoryPhi *MP = dyn_cast<MemoryPhi>(U.getUser())) in removeMemoryAccess()
1341 if (MemoryPhi *MP = in removeMemoryAccess()
1342 cast_or_null<MemoryPhi>(PhisToOptimize.pop_back_val())) in removeMemoryAccess()
1355 if (MemoryPhi *MP = MSSA->getMemoryAccess(Succ)) { in removeBlocks()
1379 if (auto *MPhi = cast_or_null<MemoryPhi>(VH)) in tryRemoveTrivialPhis()
1395 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(Successor)) { in changeToUnreachable()