Lines Matching defs:MSSA
46 if (!MSSA->DT->isReachableFromEntry(BB))
47 return MSSA->getLiveOnEntryDef();
61 MemoryAccess *Result = MSSA->createMemoryPhi(BB);
76 if (MSSA->DT->isReachableFromEntry(Pred)) {
84 PhiOps.push_back(MSSA->getLiveOnEntryDef());
89 MemoryPhi *Phi = dyn_cast_or_null<MemoryPhi>(MSSA->getMemoryAccess(BB));
104 Phi = MSSA->createMemoryPhi(BB);
148 auto *Defs = MSSA->getWritableBlockDefs(MA->getBlock());
160 auto End = MSSA->getWritableBlockAccesses(MA->getBlock())->rend();
175 auto *Defs = MSSA->getWritableBlockDefs(BB);
227 return MSSA->getLiveOnEntryDef();
253 // inserting Uses outside of the MSSA creation process, and new Phis were
257 auto *Defs = MSSA->getBlockDefs(MU->getBlock());
267 if (auto *Defs = MSSA->getWritableBlockDefs(StartBlock)) {
274 MSSA->renamePass(MU->getBlock(), FirstDef, Visited);
280 MSSA->renamePass(Phi->getBlock(), nullptr, Visited);
309 if (!MSSA->DT->isReachableFromEntry(MD->getBlock())) {
310 MD->setDefiningAccess(MSSA->getLiveOnEntryDef());
374 ForwardIDFCalculator IDFs(*MSSA->DT);
380 auto *MPhi = MSSA->getMemoryAccess(BBIDF);
382 MPhi = MSSA->createMemoryPhi(BBIDF);
438 MemoryAccess *FirstDef = &*MSSA->getWritableBlockDefs(StartBlock)->begin();
444 MSSA->renamePass(MD->getBlock(), FirstDef, Visited);
450 MSSA->renamePass(Phi->getBlock(), nullptr, Visited);
457 MSSA->renamePass(Phi->getBlock(), nullptr, Visited);
470 auto *Defs = MSSA->getWritableBlockDefs(NewDef->getBlock());
487 if (auto *MP = MSSA->getMemoryAccess(S))
497 if (auto *Defs = MSSA->getWritableBlockDefs(FixupBlock)) {
504 assert(MSSA->dominates(NewDef, FirstDef) &&
517 if (auto *MP = MSSA->getMemoryAccess(S))
532 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(To)) {
540 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(To)) {
571 MemorySSA *MSSA) {
574 if (!MSSA->isLiveOnEntryDef(DefMUD)) {
579 InsnDefining = MSSA->getMemoryAccess(NewDefMUDI);
583 DefMUD->getDefiningAccess(), VMap, MPhiMap, MSSA);
600 const MemorySSA::AccessList *Acc = MSSA->getBlockAccesses(BB);
615 MemoryAccess *NewUseOrDef = MSSA->createDefinedAccess(
618 MPhiMap, MSSA),
622 MSSA->insertIntoListsForBlock(NewUseOrDef, NewBB, MemorySSA::End);
630 auto *MPhi = MSSA->getMemoryAccess(Header);
636 auto *NewMPhi = MSSA->createMemoryPhi(BEBlock);
696 getNewDefiningAccessForClone(IncomingAccess, VMap, MPhiMap, MSSA),
710 assert(!MSSA->getWritableBlockAccesses(NewBlock) &&
714 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(BB)) {
715 MemoryPhi *NewPhi = MSSA->createMemoryPhi(NewBlock);
726 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(BB))
742 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(BB))
810 // Note: the MSSA update below doesn't distinguish between a GD with
844 // Get recursive last Def, assuming well formed MSSA and updated DT.
847 MemorySSA::DefsList *Defs = MSSA->getWritableBlockDefs(BB);
868 return MSSA->getLiveOnEntryDef();
874 return MSSA->getLiveOnEntryDef();
880 return MSSA->getLiveOnEntryDef();
983 if (PredMap.count(BB) && !MSSA->getMemoryAccess(BB))
984 InsertedPhis.push_back(MSSA->createMemoryPhi(BB));
1008 MemoryPhi *NewPhi = MSSA->getMemoryAccess(BB);
1085 if (!MSSA->getMemoryAccess(BBIDF)) {
1086 auto *IDFPhi = MSSA->createMemoryPhi(BBIDF);
1092 auto *IDFPhi = MSSA->getMemoryAccess(BBIDF);
1110 if (auto DefsList = MSSA->getWritableBlockDefs(BlockWithDefsToReplace)) {
1122 if (auto *DomBlPhi = MSSA->getMemoryAccess(DominatedBlock))
1152 MSSA->moveTo(What, BB, Where);
1180 if (auto *Where = MSSA->getMemoryAccess(BB->getTerminator()))
1190 MemorySSA::AccessList *Accs = MSSA->getWritableBlockAccesses(From);
1197 if ((FirstInNew = MSSA->getMemoryAccess(&I)))
1206 MSSA->moveTo(MUD, To, MemorySSA::End);
1209 Accs = MSSA->getWritableBlockAccesses(From);
1216 auto *Defs = MSSA->getWritableBlockDefs(From);
1225 assert(MSSA->getBlockAccesses(To) == nullptr &&
1229 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(Succ))
1239 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(Succ))
1246 assert(!MSSA->getWritableBlockAccesses(New) &&
1248 MemoryPhi *Phi = MSSA->getMemoryAccess(Old);
1254 MSSA->moveTo(Phi, New, MemorySSA::Beginning);
1258 MemoryPhi *NewPhi = MSSA->createMemoryPhi(New);
1281 assert(!MSSA->isLiveOnEntryDef(MA) &&
1330 MSSA->removeFromLookups(MA);
1331 MSSA->removeFromLists(MA);
1355 if (MemoryPhi *MP = MSSA->getMemoryAccess(Succ)) {
1360 if (MemorySSA::AccessList *Acc = MSSA->getWritableBlockAccesses(BB))
1367 MemorySSA::AccessList *Acc = MSSA->getWritableBlockAccesses(BB);
1371 MSSA->removeFromLookups(&MA);
1372 MSSA->removeFromLists(&MA);
1395 if (MemoryPhi *MPhi = MSSA->getMemoryAccess(Successor)) {
1414 MemoryUseOrDef *NewAccess = MSSA->createDefinedAccess(
1417 MSSA->insertIntoListsForBlock(NewAccess, BB, Point);
1425 MemoryUseOrDef *NewAccess = MSSA->createDefinedAccess(I, Definition);
1426 MSSA->insertIntoListsBefore(NewAccess, InsertPt->getBlock(),
1435 MemoryUseOrDef *NewAccess = MSSA->createDefinedAccess(I, Definition);
1436 MSSA->insertIntoListsBefore(NewAccess, InsertPt->getBlock(),