Lines Matching refs:MemoryPhi
89 MemoryPhi *Phi = dyn_cast_or_null<MemoryPhi>(MSSA->getMemoryAccess(BB));
192 if (MemoryPhi *UsePhi = dyn_cast<MemoryPhi>(&*U))
202 MemoryAccess *MemorySSAUpdater::tryRemoveTrivialPhi(MemoryPhi *Phi) {
208 MemoryAccess *MemorySSAUpdater::tryRemoveTrivialPhi(MemoryPhi *Phi,
279 if (MemoryPhi *Phi = cast_or_null<MemoryPhi>(MP))
284 // Set every incoming edge {BB, MP->getBlock()} of MemoryPhi MP to NewDef.
285 static void setMemoryPhiValueForBlock(MemoryPhi *MP, const BasicBlock *BB,
321 !(isa<MemoryPhi>(DefBefore) &&
372 if (const auto *RealPHI = cast_or_null<MemoryPhi>(VH))
378 SmallVector<AssertingVH<MemoryPhi>, 4> NewInsertedPHIs;
448 MemoryPhi *Phi = dyn_cast_or_null<MemoryPhi>(MP);
455 MemoryPhi *Phi = dyn_cast_or_null<MemoryPhi>(MP);
474 if (MemoryPhi *Phi = dyn_cast<MemoryPhi>(NewDef))
500 assert(!isa<MemoryPhi>(FirstDef) &&
532 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(To)) {
540 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(To)) {
556 static MemoryAccess *onlySingleValue(MemoryPhi *MP) {
588 MemoryPhi *DefPhi = cast<MemoryPhi>(InsnDefining);
673 auto FixPhiIncomingValues = [&](MemoryPhi *Phi, MemoryPhi *NewPhi) {
713 // Add MemoryPhi.
714 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(BB)) {
715 MemoryPhi *NewPhi = MSSA->createMemoryPhi(NewBlock);
726 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(BB))
728 FixPhiIncomingValues(MPhi, cast<MemoryPhi>(NewPhi));
742 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(BB))
866 // MemoryPhi node, and later deleted when the block is deleted.
1008 MemoryPhi *NewPhi = MSSA->getMemoryAccess(BB);
1070 if (auto *MPhi = cast_or_null<MemoryPhi>(VH))
1082 SmallSetVector<MemoryPhi *, 4> PhisToFill;
1115 if (MemoryPhi *UsrPhi = dyn_cast<MemoryPhi>(Usr)) {
1143 // Mark MemoryPhi users of What not to be optimized.
1145 if (MemoryPhi *PhiUser = dyn_cast<MemoryPhi>(U))
1160 // Clear dangling pointers. We added all MemoryPhi users, but not all
1218 if (auto *Phi = dyn_cast<MemoryPhi>(&*Defs->begin()))
1229 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(Succ))
1239 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(Succ))
1248 MemoryPhi *Phi = MSSA->getMemoryAccess(Old);
1258 MemoryPhi *NewPhi = MSSA->createMemoryPhi(New);
1286 if (MemoryPhi *MP = dyn_cast<MemoryPhi>(MA)) {
1299 SmallSetVector<MemoryPhi *, 4> PhisToCheck;
1322 if (MemoryPhi *MP = dyn_cast<MemoryPhi>(U.getUser()))
1341 if (MemoryPhi *MP =
1342 cast_or_null<MemoryPhi>(PhisToOptimize.pop_back_val()))
1355 if (MemoryPhi *MP = MSSA->getMemoryAccess(Succ)) {
1379 if (auto *MPhi = cast_or_null<MemoryPhi>(VH))
1395 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(Successor)) {