Lines Matching refs:MPhi
380 auto *MPhi = MSSA->getMemoryAccess(BBIDF); in insertDef() local
381 if (!MPhi) { in insertDef()
382 MPhi = MSSA->createMemoryPhi(BBIDF); in insertDef()
383 NewInsertedPHIs.push_back(MPhi); in insertDef()
385 ExistingPhis.insert(MPhi); in insertDef()
393 NonOptPhis.insert(MPhi); in insertDef()
395 for (auto &MPhi : NewInsertedPHIs) { in insertDef() local
396 auto *BBIDF = MPhi->getBlock(); in insertDef()
399 MPhi->addIncoming(getPreviousDefFromEnd(Pred, CachedPreviousDef), Pred); in insertDef()
406 for (auto &MPhi : NewInsertedPHIs) { in insertDef() local
407 InsertedPHIs.push_back(&*MPhi); in insertDef()
408 FixupList.push_back(&*MPhi); in insertDef()
532 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(To)) { in removeEdge() local
533 MPhi->unorderedDeleteIncomingBlock(From); in removeEdge()
534 tryRemoveTrivialPhi(MPhi); in removeEdge()
540 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(To)) { in removeDuplicatePhiEdgesBetween() local
542 MPhi->unorderedDeleteIncomingIf([&](const MemoryAccess *, BasicBlock *B) { in removeDuplicatePhiEdgesBetween()
550 tryRemoveTrivialPhi(MPhi); in removeDuplicatePhiEdgesBetween()
630 auto *MPhi = MSSA->getMemoryAccess(Header); in updatePhisWhenInsertingUniqueBackedgeBlock() local
631 if (!MPhi) in updatePhisWhenInsertingUniqueBackedgeBlock()
639 for (unsigned I = 0, E = MPhi->getNumIncomingValues(); I != E; ++I) { in updatePhisWhenInsertingUniqueBackedgeBlock()
640 BasicBlock *IBB = MPhi->getIncomingBlock(I); in updatePhisWhenInsertingUniqueBackedgeBlock()
641 MemoryAccess *IV = MPhi->getIncomingValue(I); in updatePhisWhenInsertingUniqueBackedgeBlock()
655 auto *AccFromPreheader = MPhi->getIncomingValueForBlock(Preheader); in updatePhisWhenInsertingUniqueBackedgeBlock()
656 MPhi->setIncomingValue(0, AccFromPreheader); in updatePhisWhenInsertingUniqueBackedgeBlock()
657 MPhi->setIncomingBlock(0, Preheader); in updatePhisWhenInsertingUniqueBackedgeBlock()
658 for (unsigned I = MPhi->getNumIncomingValues() - 1; I >= 1; --I) in updatePhisWhenInsertingUniqueBackedgeBlock()
659 MPhi->unorderedDeleteIncoming(I); in updatePhisWhenInsertingUniqueBackedgeBlock()
660 MPhi->addIncoming(NewMPhi, BEBlock); in updatePhisWhenInsertingUniqueBackedgeBlock()
714 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(BB)) { in updateForClonedLoop() local
716 MPhiMap[MPhi] = NewPhi; in updateForClonedLoop()
726 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(BB)) in updateForClonedLoop() local
727 if (MemoryAccess *NewPhi = MPhiMap.lookup(MPhi)) in updateForClonedLoop()
728 FixPhiIncomingValues(MPhi, cast<MemoryPhi>(NewPhi)); in updateForClonedLoop()
742 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(BB)) in updateForClonedBlockIntoPred() local
743 MPhiMap[MPhi] = MPhi->getIncomingValueForBlock(P1); in updateForClonedBlockIntoPred()
1070 if (auto *MPhi = cast_or_null<MemoryPhi>(VH)) in applyInsertUpdates() local
1071 BlocksToProcess.push_back(MPhi->getBlock()); in applyInsertUpdates()
1229 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(Succ)) in moveAllAfterSpliceBlocks() local
1230 MPhi->setIncomingBlock(MPhi->getBasicBlockIndex(From), To); in moveAllAfterSpliceBlocks()
1239 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(Succ)) in moveAllAfterMergeBlocks() local
1240 MPhi->setIncomingBlock(MPhi->getBasicBlockIndex(From), To); in moveAllAfterMergeBlocks()
1379 if (auto *MPhi = cast_or_null<MemoryPhi>(VH)) in tryRemoveTrivialPhis() local
1380 tryRemoveTrivialPhi(MPhi); in tryRemoveTrivialPhis()
1395 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(Successor)) { in changeToUnreachable() local
1396 MPhi->unorderedDeleteIncomingBlock(BB); in changeToUnreachable()
1397 UpdatedPHIs.push_back(MPhi); in changeToUnreachable()