Lines Matching refs:MSSA
108 const MemorySSA *MSSA; member in llvm::MemorySSAAnnotatedWriter
111 MemorySSAAnnotatedWriter(const MemorySSA *M) : MSSA(M) {} in MemorySSAAnnotatedWriter()
115 if (MemoryAccess *MA = MSSA->getMemoryAccess(BB)) in emitBasicBlockStartAnnot()
121 if (MemoryAccess *MA = MSSA->getMemoryAccess(I)) in emitInstructionAnnot()
404 const MemoryLocation &StartLoc, const MemorySSA &MSSA, in checkClobberSanity() argument
407 assert(MSSA.dominates(ClobberAt, Start) && "Clobber doesn't dominate start?"); in checkClobberSanity()
409 if (MSSA.isLiveOnEntryDef(Start)) { in checkClobberSanity()
410 assert(MSSA.isLiveOnEntryDef(ClobberAt) && in checkClobberSanity()
436 FoundClobber = FoundClobber || MSSA.isLiveOnEntryDef(MD); in checkClobberSanity()
450 assert(!MSSA.isLiveOnEntryDef(MA) && "Hit liveOnEntry before clobber?"); in checkClobberSanity()
475 MSSA.getDomTree()), in checkClobberSanity()
478 if (MSSA.getDomTree().isReachableFromEntry(ItB.getPhiArgBlock())) in checkClobberSanity()
524 const MemorySSA &MSSA; member in __anon7d6d195a0511::ClobberWalker
546 MemoryAccess *Result = MSSA.getLiveOnEntryDef(); in getWalkTarget()
549 auto *Defs = MSSA.getBlockDefs(Node->getBlock()); in getWalkTarget()
591 if (MSSA.isLiveOnEntryDef(MD)) in walkToPhiOrClobber()
696 if (!MSSA.dominates(Res.Result, StopWhere)) in getBlockingAccess()
714 assert(!MSSA.isLiveOnEntryDef(Res.Result) && "liveOnEntry is a clobber"); in getBlockingAccess()
812 if (!MSSA.dominates(I->Clobber, Dom->Clobber)) in tryOptimizePhi()
821 assert(!MSSA.isLiveOnEntryDef(Current) && in tryOptimizePhi()
828 return MSSA.dominates(P.Clobber, Target); in tryOptimizePhi()
941 return MSSA.dominates(P.Clobber, R.PrimaryClobber.Clobber); in verifyOptResult()
952 ClobberWalker(const MemorySSA &MSSA, AliasAnalysisType &AA, DominatorTree &DT) in ClobberWalker() argument
953 : MSSA(MSSA), AA(AA), DT(DT) {} in ClobberWalker()
990 checkClobberSanity(Current, Result, Q.StartingLoc, MSSA, Q, AA); in findClobber()
1018 MemorySSA *MSSA; member in llvm::MemorySSA::ClobberWalkerBase
1022 : Walker(*M, *A, *D), MSSA(M) {} in ClobberWalkerBase()
1303 OptimizeUses(MemorySSA *MSSA, CachingWalker<BatchAAResults> *Walker, in OptimizeUses() argument
1305 : MSSA(MSSA), Walker(Walker), AA(BAA), DT(DT) {} in OptimizeUses()
1332 MemorySSA *MSSA; member in llvm::MemorySSA::OptimizeUses
1358 MemorySSA::AccessList *Accesses = MSSA->getWritableBlockAccesses(BB); in optimizeUsesInBlock()
1385 MU->setDefiningAccess(MSSA->getLiveOnEntryDef(), true, None); in optimizeUsesInBlock()
1491 if (MSSA->isLiveOnEntryDef(VersionStack[UpperBound])) in optimizeUsesInBlock()
1509 VersionStack.push_back(MSSA->getLiveOnEntryDef()); in optimizeUses()
2274 DOTFuncMSSAInfo(const Function &F, MemorySSA &MSSA) in DOTFuncMSSAInfo() argument
2275 : F(F), MSSAWriter(&MSSA) {} in DOTFuncMSSAInfo()
2353 auto &MSSA = getAnalysis<MemorySSAWrapperPass>().getMSSA(); in runOnFunction() local
2355 DOTFuncMSSAInfo CFGInfo(F, MSSA); in runOnFunction()
2358 MSSA.print(dbgs()); in runOnFunction()
2361 MSSA.verifyMemorySSA(); in runOnFunction()
2385 auto &MSSA = AM.getResult<MemorySSAAnalysis>(F).getMSSA(); in run() local
2387 DOTFuncMSSAInfo CFGInfo(F, MSSA); in run()
2391 MSSA.print(OS); in run()
2410 void MemorySSAWrapperPass::releaseMemory() { MSSA.reset(); } in releaseMemory()
2421 MSSA.reset(new MemorySSA(F, &AA, &DT)); in runOnFunction()
2427 MSSA->verifyMemorySSA(); in verifyAnalysis()
2431 MSSA->print(OS); in print()
2434 MemorySSAWalker::MemorySSAWalker(MemorySSA *M) : MSSA(M) {} in MemorySSAWalker()
2449 if (MSSA->isLiveOnEntryDef(StartingUseOrDef)) in getClobberingMemoryAccessBase()
2511 MemoryAccess *LiveOnEntry = MSSA->getLiveOnEntryDef(); in getClobberingMemoryAccessBase()
2524 if (MSSA->isLiveOnEntryDef(DefiningAccess)) { in getClobberingMemoryAccessBase()
2532 if (MSSA->isLiveOnEntryDef(OptimizedAccess)) in getClobberingMemoryAccessBase()