Lines Matching defs:NewPhi
680 auto FixPhiIncomingValues = [&](MemoryPhi *Phi, MemoryPhi *NewPhi) {
681 assert(Phi && NewPhi && "Invalid Phi nodes.");
682 BasicBlock *NewPhiBB = NewPhi->getBlock();
694 // Now we have IncBB, and will need to add incoming from it to NewPhi.
702 NewPhi->addIncoming(getNewDefiningAccessForClone(IncomingAccess, VMap,
707 if (auto *SingleAccess = onlySingleValue(NewPhi)) {
709 removeMemoryAccess(NewPhi);
723 MemoryPhi *NewPhi = MSSA->createMemoryPhi(NewBlock);
724 MPhiMap[MPhi] = NewPhi;
735 if (MemoryAccess *NewPhi = MPhiMap.lookup(MPhi))
736 FixPhiIncomingValues(MPhi, cast<MemoryPhi>(NewPhi));
1018 MemoryPhi *NewPhi = MSSA->getMemoryAccess(BB);
1021 if (NewPhi->getNumOperands()) {
1025 NewPhi->addIncoming(LastDefForPred, Pred);
1042 // Since NewPhi may be used in other newly added Phis, replace all uses
1043 // of NewPhi with the definition coming from all predecessors (DefP1),
1045 NewPhi->replaceAllUsesWith(DefP1);
1046 removeMemoryAccess(NewPhi);
1052 // sets, the order of entries in NewPhi is deterministic.
1056 NewPhi->addIncoming(LastDefForPred, Pred);
1060 NewPhi->addIncoming(DefP1, Pred);
1268 MemoryPhi *NewPhi = MSSA->createMemoryPhi(New);
1278 NewPhi->addIncoming(MA, B);
1285 Phi->addIncoming(NewPhi, New);
1286 tryRemoveTrivialPhi(NewPhi);