Lines Matching defs:NewPhi
661 auto FixPhiIncomingValues = [&](MemoryPhi *Phi, MemoryPhi *NewPhi) {
662 assert(Phi && NewPhi && "Invalid Phi nodes.");
663 BasicBlock *NewPhiBB = NewPhi->getBlock();
675 // Now we have IncBB, and will need to add incoming from it to NewPhi.
694 NewPhi->addIncoming(IncMUD, IncBB);
698 NewPhi->addIncoming(NewDefPhi, IncBB);
700 NewPhi->addIncoming(IncPhi, IncBB);
715 MemoryPhi *NewPhi = MSSA->createMemoryPhi(NewBlock);
716 MPhiMap[MPhi] = NewPhi;
727 if (MemoryAccess *NewPhi = MPhiMap.lookup(MPhi))
728 FixPhiIncomingValues(MPhi, cast<MemoryPhi>(NewPhi));
989 MemoryPhi *NewPhi = MSSA->getMemoryAccess(BB);
992 if (NewPhi->getNumOperands()) {
996 NewPhi->addIncoming(LastDefForPred, Pred);
1013 // Since NewPhi may be used in other newly added Phis, replace all uses
1014 // of NewPhi with the definition coming from all predecessors (DefP1),
1016 NewPhi->replaceAllUsesWith(DefP1);
1017 removeMemoryAccess(NewPhi);
1023 // sets, the order of entries in NewPhi is deterministic.
1027 NewPhi->addIncoming(LastDefForPred, Pred);
1031 NewPhi->addIncoming(DefP1, Pred);
1259 MemoryPhi *NewPhi = MSSA->createMemoryPhi(New);
1269 NewPhi->addIncoming(MA, B);
1276 Phi->addIncoming(NewPhi, New);
1277 tryRemoveTrivialPhi(NewPhi);