Lines Matching refs:MSSA

105   const MemorySSA *MSSA;  member in __anonca596e530111::MemorySSAAnnotatedWriter
108 MemorySSAAnnotatedWriter(const MemorySSA *M) : MSSA(M) {} in MemorySSAAnnotatedWriter()
112 if (MemoryAccess *MA = MSSA->getMemoryAccess(BB)) in emitBasicBlockStartAnnot()
118 if (MemoryAccess *MA = MSSA->getMemoryAccess(I)) in emitInstructionAnnot()
126 MemorySSA *MSSA; member in __anonca596e530111::MemorySSAWalkerAnnotatedWriter
131 : MSSA(M), Walker(M->getWalker()) {} in MemorySSAWalkerAnnotatedWriter()
135 if (MemoryAccess *MA = MSSA->getMemoryAccess(BB)) in emitBasicBlockStartAnnot()
141 if (MemoryAccess *MA = MSSA->getMemoryAccess(I)) { in emitInstructionAnnot()
146 if (MSSA->isLiveOnEntryDef(Clobber)) in emitInstructionAnnot()
420 const MemoryLocation &StartLoc, const MemorySSA &MSSA, in checkClobberSanity() argument
423 assert(MSSA.dominates(ClobberAt, Start) && "Clobber doesn't dominate start?"); in checkClobberSanity()
425 if (MSSA.isLiveOnEntryDef(Start)) { in checkClobberSanity()
426 assert(MSSA.isLiveOnEntryDef(ClobberAt) && in checkClobberSanity()
452 FoundClobber = FoundClobber || MSSA.isLiveOnEntryDef(MD); in checkClobberSanity()
466 assert(!MSSA.isLiveOnEntryDef(MA) && "Hit liveOnEntry before clobber?"); in checkClobberSanity()
491 MSSA.getDomTree()), in checkClobberSanity()
494 if (MSSA.getDomTree().isReachableFromEntry(ItB.getPhiArgBlock())) in checkClobberSanity()
540 const MemorySSA &MSSA; member in __anonca596e530611::ClobberWalker
562 MemoryAccess *Result = MSSA.getLiveOnEntryDef(); in getWalkTarget()
565 auto *Defs = MSSA.getBlockDefs(Node->getBlock()); in getWalkTarget()
607 if (MSSA.isLiveOnEntryDef(MD)) in walkToPhiOrClobber()
712 if (!MSSA.dominates(Res.Result, StopWhere)) in getBlockingAccess()
730 assert(!MSSA.isLiveOnEntryDef(Res.Result) && "liveOnEntry is a clobber"); in getBlockingAccess()
828 if (!MSSA.dominates(I->Clobber, Dom->Clobber)) in tryOptimizePhi()
837 assert(!MSSA.isLiveOnEntryDef(Current) && in tryOptimizePhi()
844 return MSSA.dominates(P.Clobber, Target); in tryOptimizePhi()
957 return MSSA.dominates(P.Clobber, R.PrimaryClobber.Clobber); in verifyOptResult()
968 ClobberWalker(const MemorySSA &MSSA, AliasAnalysisType &AA, DominatorTree &DT) in ClobberWalker() argument
969 : MSSA(MSSA), AA(AA), DT(DT) {} in ClobberWalker()
1006 checkClobberSanity(Current, Result, Q.StartingLoc, MSSA, Q, AA); in findClobber()
1034 MemorySSA *MSSA; member in llvm::MemorySSA::ClobberWalkerBase
1038 : Walker(*M, *A, *D), MSSA(M) {} in ClobberWalkerBase()
1325 OptimizeUses(MemorySSA *MSSA, CachingWalker<BatchAAResults> *Walker, in OptimizeUses() argument
1327 : MSSA(MSSA), Walker(Walker), AA(BAA), DT(DT) {} in OptimizeUses()
1354 MemorySSA *MSSA; member in llvm::MemorySSA::OptimizeUses
1380 MemorySSA::AccessList *Accesses = MSSA->getWritableBlockAccesses(BB); in optimizeUsesInBlock()
1410 MU->setDefiningAccess(MSSA->getLiveOnEntryDef(), true, None); in optimizeUsesInBlock()
1510 if (MSSA->isLiveOnEntryDef(VersionStack[UpperBound])) in optimizeUsesInBlock()
1528 VersionStack.push_back(MSSA->getLiveOnEntryDef()); in optimizeUses()
2289 DOTFuncMSSAInfo(const Function &F, MemorySSA &MSSA) in DOTFuncMSSAInfo() argument
2290 : F(F), MSSAWriter(&MSSA) {} in DOTFuncMSSAInfo()
2368 auto &MSSA = getAnalysis<MemorySSAWrapperPass>().getMSSA(); in runOnFunction() local
2369 MSSA.ensureOptimizedUses(); in runOnFunction()
2371 DOTFuncMSSAInfo CFGInfo(F, MSSA); in runOnFunction()
2374 MSSA.print(dbgs()); in runOnFunction()
2377 MSSA.verifyMemorySSA(); in runOnFunction()
2401 auto &MSSA = AM.getResult<MemorySSAAnalysis>(F).getMSSA(); in run() local
2402 MSSA.ensureOptimizedUses(); in run()
2404 DOTFuncMSSAInfo CFGInfo(F, MSSA); in run()
2408 MSSA.print(OS); in run()
2416 auto &MSSA = AM.getResult<MemorySSAAnalysis>(F).getMSSA(); in run() local
2418 MemorySSAWalkerAnnotatedWriter Writer(&MSSA); in run()
2437 void MemorySSAWrapperPass::releaseMemory() { MSSA.reset(); } in releaseMemory()
2448 MSSA.reset(new MemorySSA(F, &AA, &DT)); in runOnFunction()
2454 MSSA->verifyMemorySSA(); in verifyAnalysis()
2458 MSSA->print(OS); in print()
2461 MemorySSAWalker::MemorySSAWalker(MemorySSA *M) : MSSA(M) {} in MemorySSAWalker()
2476 if (MSSA->isLiveOnEntryDef(StartingUseOrDef)) in getClobberingMemoryAccessBase()
2578 *StartingAccess->getMemoryInst(), MSSA->getDomTree())) { in getClobberingMemoryAccessBase()
2581 auto *ClobberMA = MSSA->getMemoryAccess(I); in getClobberingMemoryAccessBase()
2610 MemoryAccess *LiveOnEntry = MSSA->getLiveOnEntryDef(); in getClobberingMemoryAccessBase()
2623 if (MSSA->isLiveOnEntryDef(DefiningAccess)) { in getClobberingMemoryAccessBase()
2631 if (MSSA->isLiveOnEntryDef(OptimizedAccess)) in getClobberingMemoryAccessBase()