Lines Matching refs:MSSA
46 if (!MSSA->DT->isReachableFromEntry(BB)) in getPreviousDefRecursive()
47 return MSSA->getLiveOnEntryDef(); in getPreviousDefRecursive()
61 MemoryAccess *Result = MSSA->createMemoryPhi(BB); in getPreviousDefRecursive()
76 if (MSSA->DT->isReachableFromEntry(Pred)) { in getPreviousDefRecursive()
84 PhiOps.push_back(MSSA->getLiveOnEntryDef()); in getPreviousDefRecursive()
89 MemoryPhi *Phi = dyn_cast_or_null<MemoryPhi>(MSSA->getMemoryAccess(BB)); in getPreviousDefRecursive()
104 Phi = MSSA->createMemoryPhi(BB); in getPreviousDefRecursive()
148 auto *Defs = MSSA->getWritableBlockDefs(MA->getBlock()); in getPreviousDefInBlock()
160 auto End = MSSA->getWritableBlockAccesses(MA->getBlock())->rend(); in getPreviousDefInBlock()
175 auto *Defs = MSSA->getWritableBlockDefs(BB); in getPreviousDefFromEnd()
227 return MSSA->getLiveOnEntryDef(); in tryRemoveTrivialPhi()
257 auto *Defs = MSSA->getBlockDefs(MU->getBlock()); in insertUse()
267 if (auto *Defs = MSSA->getWritableBlockDefs(StartBlock)) { in insertUse()
274 MSSA->renamePass(MU->getBlock(), FirstDef, Visited); in insertUse()
280 MSSA->renamePass(Phi->getBlock(), nullptr, Visited); in insertUse()
309 if (!MSSA->DT->isReachableFromEntry(MD->getBlock())) { in insertDef()
310 MD->setDefiningAccess(MSSA->getLiveOnEntryDef()); in insertDef()
374 ForwardIDFCalculator IDFs(*MSSA->DT); in insertDef()
380 auto *MPhi = MSSA->getMemoryAccess(BBIDF); in insertDef()
382 MPhi = MSSA->createMemoryPhi(BBIDF); in insertDef()
438 MemoryAccess *FirstDef = &*MSSA->getWritableBlockDefs(StartBlock)->begin(); in insertDef()
444 MSSA->renamePass(MD->getBlock(), FirstDef, Visited); in insertDef()
450 MSSA->renamePass(Phi->getBlock(), nullptr, Visited); in insertDef()
457 MSSA->renamePass(Phi->getBlock(), nullptr, Visited); in insertDef()
470 auto *Defs = MSSA->getWritableBlockDefs(NewDef->getBlock()); in fixupDefs()
487 if (auto *MP = MSSA->getMemoryAccess(S)) in fixupDefs()
497 if (auto *Defs = MSSA->getWritableBlockDefs(FixupBlock)) { in fixupDefs()
504 assert(MSSA->dominates(NewDef, FirstDef) && in fixupDefs()
517 if (auto *MP = MSSA->getMemoryAccess(S)) in fixupDefs()
532 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(To)) { in removeEdge()
540 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(To)) { in removeDuplicatePhiEdgesBetween()
572 MemorySSA *MSSA) { in getNewDefiningAccessForClone() argument
575 if (!MSSA->isLiveOnEntryDef(DefMUD)) { in getNewDefiningAccessForClone()
580 InsnDefining = MSSA->getMemoryAccess(NewDefMUDI); in getNewDefiningAccessForClone()
589 assert(DefIt != MSSA->getBlockDefs(DefMUD->getBlock())->begin() && in getNewDefiningAccessForClone()
592 &*(--DefIt), VMap, MPhiMap, CloneWasSimplified, MSSA); in getNewDefiningAccessForClone()
609 const MemorySSA::AccessList *Acc = MSSA->getBlockAccesses(BB); in cloneUsesAndDefs()
624 MemoryAccess *NewUseOrDef = MSSA->createDefinedAccess( in cloneUsesAndDefs()
627 MPhiMap, CloneWasSimplified, MSSA), in cloneUsesAndDefs()
631 MSSA->insertIntoListsForBlock(NewUseOrDef, NewBB, MemorySSA::End); in cloneUsesAndDefs()
639 auto *MPhi = MSSA->getMemoryAccess(Header); in updatePhisWhenInsertingUniqueBackedgeBlock()
645 auto *NewMPhi = MSSA->createMemoryPhi(BEBlock); in updatePhisWhenInsertingUniqueBackedgeBlock()
705 if (!MSSA->isLiveOnEntryDef(IncMUD)) { in updateForClonedLoop()
710 IncMUD = MSSA->getMemoryAccess(NewIncI); in updateForClonedLoop()
735 assert(!MSSA->getWritableBlockAccesses(NewBlock) && in updateForClonedLoop()
739 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(BB)) { in updateForClonedLoop()
740 MemoryPhi *NewPhi = MSSA->createMemoryPhi(NewBlock); in updateForClonedLoop()
751 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(BB)) in updateForClonedLoop()
767 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(BB)) in updateForClonedBlockIntoPred()
872 MemorySSA::DefsList *Defs = MSSA->getWritableBlockDefs(BB); in applyInsertUpdates()
893 return MSSA->getLiveOnEntryDef(); in applyInsertUpdates()
899 return MSSA->getLiveOnEntryDef(); in applyInsertUpdates()
905 return MSSA->getLiveOnEntryDef(); in applyInsertUpdates()
1008 if (PredMap.count(BB) && !MSSA->getMemoryAccess(BB)) in applyInsertUpdates()
1009 InsertedPhis.push_back(MSSA->createMemoryPhi(BB)); in applyInsertUpdates()
1033 MemoryPhi *NewPhi = MSSA->getMemoryAccess(BB); in applyInsertUpdates()
1110 if (!MSSA->getMemoryAccess(BBIDF)) { in applyInsertUpdates()
1111 auto *IDFPhi = MSSA->createMemoryPhi(BBIDF); in applyInsertUpdates()
1117 auto *IDFPhi = MSSA->getMemoryAccess(BBIDF); in applyInsertUpdates()
1135 if (auto DefsList = MSSA->getWritableBlockDefs(BlockWithDefsToReplace)) { in applyInsertUpdates()
1147 if (auto *DomBlPhi = MSSA->getMemoryAccess(DominatedBlock)) in applyInsertUpdates()
1177 MSSA->moveTo(What, BB, Where); in moveTo()
1205 if (auto *Where = MSSA->getMemoryAccess(BB->getTerminator())) in moveToPlace()
1215 MemorySSA::AccessList *Accs = MSSA->getWritableBlockAccesses(From); in moveAllAccesses()
1222 if ((FirstInNew = MSSA->getMemoryAccess(&I))) in moveAllAccesses()
1231 MSSA->moveTo(MUD, To, MemorySSA::End); in moveAllAccesses()
1234 Accs = MSSA->getWritableBlockAccesses(From); in moveAllAccesses()
1241 auto *Defs = MSSA->getWritableBlockDefs(From); in moveAllAccesses()
1250 assert(MSSA->getBlockAccesses(To) == nullptr && in moveAllAfterSpliceBlocks()
1254 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(Succ)) in moveAllAfterSpliceBlocks()
1264 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(Succ)) in moveAllAfterMergeBlocks()
1271 assert(!MSSA->getWritableBlockAccesses(New) && in wireOldPredecessorsToNewImmediatePredecessor()
1273 MemoryPhi *Phi = MSSA->getMemoryAccess(Old); in wireOldPredecessorsToNewImmediatePredecessor()
1279 MSSA->moveTo(Phi, New, MemorySSA::Beginning); in wireOldPredecessorsToNewImmediatePredecessor()
1283 MemoryPhi *NewPhi = MSSA->createMemoryPhi(New); in wireOldPredecessorsToNewImmediatePredecessor()
1306 assert(!MSSA->isLiveOnEntryDef(MA) && in removeMemoryAccess()
1355 MSSA->removeFromLookups(MA); in removeMemoryAccess()
1356 MSSA->removeFromLists(MA); in removeMemoryAccess()
1380 if (MemoryPhi *MP = MSSA->getMemoryAccess(Succ)) { in removeBlocks()
1385 if (MemorySSA::AccessList *Acc = MSSA->getWritableBlockAccesses(BB)) in removeBlocks()
1392 MemorySSA::AccessList *Acc = MSSA->getWritableBlockAccesses(BB); in removeBlocks()
1396 MSSA->removeFromLookups(&MA); in removeBlocks()
1397 MSSA->removeFromLists(&MA); in removeBlocks()
1420 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(Successor)) { in changeToUnreachable()
1432 MemoryUseOrDef *NewAccess = MSSA->createDefinedAccess(I, Definition); in createMemoryAccessInBB()
1433 MSSA->insertIntoListsForBlock(NewAccess, BB, Point); in createMemoryAccessInBB()
1441 MemoryUseOrDef *NewAccess = MSSA->createDefinedAccess(I, Definition); in createMemoryAccessBefore()
1442 MSSA->insertIntoListsBefore(NewAccess, InsertPt->getBlock(), in createMemoryAccessBefore()
1451 MemoryUseOrDef *NewAccess = MSSA->createDefinedAccess(I, Definition); in createMemoryAccessAfter()
1452 MSSA->insertIntoListsBefore(NewAccess, InsertPt->getBlock(), in createMemoryAccessAfter()