Home
last modified time | relevance | path

Searched refs:MSSA (Results 1 – 21 of 21) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DMemorySSAUpdater.cpp51 if (!MSSA->DT->isReachableFromEntry(BB)) in getPreviousDefRecursive()
52 return MSSA->getLiveOnEntryDef(); in getPreviousDefRecursive()
66 MemoryAccess *Result = MSSA->createMemoryPhi(BB); in getPreviousDefRecursive()
81 if (MSSA->DT->isReachableFromEntry(Pred)) { in getPreviousDefRecursive()
89 PhiOps.push_back(MSSA->getLiveOnEntryDef()); in getPreviousDefRecursive()
94 MemoryPhi *Phi = dyn_cast_or_null<MemoryPhi>(MSSA->getMemoryAccess(BB)); in getPreviousDefRecursive()
109 Phi = MSSA->createMemoryPhi(BB); in getPreviousDefRecursive()
153 auto *Defs = MSSA->getWritableBlockDefs(MA->getBlock()); in getPreviousDefInBlock()
165 auto End = MSSA->getWritableBlockAccesses(MA->getBlock())->rend(); in getPreviousDefInBlock()
180 auto *Defs = MSSA->getWritableBlockDefs(BB); in getPreviousDefFromEnd()
[all …]
DMemorySSA.cpp102 const MemorySSA *MSSA; member in llvm::MemorySSAAnnotatedWriter
105 MemorySSAAnnotatedWriter(const MemorySSA *M) : MSSA(M) {} in MemorySSAAnnotatedWriter()
109 if (MemoryAccess *MA = MSSA->getMemoryAccess(BB)) in emitBasicBlockStartAnnot()
115 if (MemoryAccess *MA = MSSA->getMemoryAccess(I)) in emitInstructionAnnot()
401 const MemoryLocation &StartLoc, const MemorySSA &MSSA, in checkClobberSanity() argument
404 assert(MSSA.dominates(ClobberAt, Start) && "Clobber doesn't dominate start?"); in checkClobberSanity()
406 if (MSSA.isLiveOnEntryDef(Start)) { in checkClobberSanity()
407 assert(MSSA.isLiveOnEntryDef(ClobberAt) && in checkClobberSanity()
433 FoundClobber = FoundClobber || MSSA.isLiveOnEntryDef(MD); in checkClobberSanity()
447 assert(!MSSA.isLiveOnEntryDef(MA) && "Hit liveOnEntry before clobber?"); in checkClobberSanity()
[all …]
DAliasSetTracker.cpp546 assert(MSSA && L && "MSSA and L must be available"); in addAllInstructionsInLoopUsingMSSA()
548 if (auto *Accesses = MSSA->getBlockAccesses(BB)) in addAllInstructionsInLoopUsingMSSA()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopInstSimplify.cpp80 MemorySSA *MSSA = MSSAU ? MSSAU->getMemorySSA() : nullptr; in simplifyLoopInst() local
85 MSSA->verifyMemorySSA(); in simplifyLoopInst()
139 if (MemoryAccess *MA = MSSA->getMemoryAccess(&I)) in simplifyLoopInst()
140 if (MemoryAccess *ReplacementMA = MSSA->getMemoryAccess(SimpleI)) in simplifyLoopInst()
159 MSSA->verifyMemorySSA(); in simplifyLoopInst()
198 MemorySSA *MSSA = nullptr; in runOnLoop() local
201 MSSA = &getAnalysis<MemorySSAWrapperPass>().getMSSA(); in runOnLoop()
202 MSSAU = MemorySSAUpdater(MSSA); in runOnLoop()
228 if (AR.MSSA) { in run()
229 MSSAU = MemorySSAUpdater(AR.MSSA); in run()
[all …]
DLoopRotation.cpp47 if (AR.MSSA) in run()
48 MSSAU = MemorySSAUpdater(AR.MSSA); in run()
56 if (AR.MSSA && VerifyMemorySSA) in run()
57 AR.MSSA->verifyMemorySSA(); in run()
60 if (AR.MSSA) in run()
DGVNHoist.cpp259 MemoryDependenceResults *MD, MemorySSA *MSSA) in GVNHoist() argument
260 : DT(DT), PDT(PDT), AA(AA), MD(MD), MSSA(MSSA), in GVNHoist()
261 MSSAUpdater(std::make_unique<MemorySSAUpdater>(MSSA)) {} in GVNHoist()
335 MemorySSA *MSSA; member in llvm::GVNHoist
387 const MemorySSA::AccessList *Acc = MSSA->getBlockAccesses(BB); in hasMemoryUse()
535 if (NewBB == DBB && !MSSA->isLiveOnEntryDef(D)) in safeToHoistLdSt()
552 assert(MSSA->locallyDominates(D, U)); in safeToHoistLdSt()
608 MemoryUseOrDef *UD = MSSA->getMemoryAccess(Insn); in checkSafety()
921 MemoryAccess *OldMA = MSSA->getMemoryAccess(I); in rauw()
956 MemoryUseOrDef *NewMemAcc = MSSA->getMemoryAccess(Repl); in removeAndReplace()
[all …]
DEarlyCSE.cpp487 MemorySSA *MSSA; member in __anon631934340311::EarlyCSE
566 AssumptionCache &AC, MemorySSA *MSSA) in EarlyCSE() argument
567 : TLI(TLI), TTI(TTI), DT(DT), AC(AC), SQ(DL, &TLI, &DT, &AC), MSSA(MSSA), in EarlyCSE()
568 MSSAUpdater(std::make_unique<MemorySSAUpdater>(MSSA)) {} in EarlyCSE()
757 if (!MSSA) in removeMSSA()
760 MSSA->verifyMemorySSA(); in removeMSSA()
797 if (!MSSA) in isSameMemGeneration()
807 auto *EarlierMA = MSSA->getMemoryAccess(EarlierInst); in isSameMemGeneration()
810 auto *LaterMA = MSSA->getMemoryAccess(LaterInst); in isSameMemGeneration()
820 LaterDef = MSSA->getWalker()->getClobberingMemoryAccess(LaterInst); in isSameMemGeneration()
[all …]
DLICM.cpp155 static bool pointerInvalidatedByLoopWithMSSA(MemorySSA *MSSA, MemoryUse *MU,
174 ScalarEvolution *SE, MemorySSA *MSSA,
214 MemorySSA *MSSA = EnableMSSALoopDependency in runOnLoop() local
229 SE ? &SE->getSE() : nullptr, MSSA, &ORE, false); in runOnLoop()
293 AR.MSSA, ORE, true)) in run()
300 if (AR.MSSA) in run()
331 MemorySSA *MSSA, OptimizationRemarkEmitter *ORE, bool DeleteAST) { in runOnLoop() argument
347 if (!MSSA) { in runOnLoop()
352 MSSAU = std::make_unique<MemorySSAUpdater>(MSSA); in runOnLoop()
356 if (auto *Accesses = MSSA->getBlockAccesses(BB)) { in runOnLoop()
[all …]
DLoopUnswitch.cpp186 MemorySSA *MSSA = nullptr; member in __anonfe52698b0111::LoopUnswitch
529 MSSA = &getAnalysis<MemorySSAWrapperPass>().getMSSA(); in runOnLoop()
530 MSSAU = std::make_unique<MemorySSAUpdater>(MSSA); in runOnLoop()
540 if (MSSA && VerifyMemorySSA) in runOnLoop()
541 MSSA->verifyMemorySSA(); in runOnLoop()
546 if (MSSA && VerifyMemorySSA) in runOnLoop()
547 MSSA->verifyMemorySSA(); in runOnLoop()
552 if (MSSA && VerifyMemorySSA) in runOnLoop()
553 MSSA->verifyMemorySSA(); in runOnLoop()
1251 MSSA->verifyMemorySSA(); in UnswitchNontrivialCondition()
[all …]
DLoopSimplifyCFG.cpp698 if (AR.MSSA) in run()
699 MSSAU = MemorySSAUpdater(AR.MSSA); in run()
710 if (AR.MSSA) in run()
732 MemorySSA *MSSA = &getAnalysis<MemorySSAWrapperPass>().getMSSA(); in runOnLoop() local
733 MSSAU = MemorySSAUpdater(MSSA); in runOnLoop()
735 MSSA->verifyMemorySSA(); in runOnLoop()
DSimpleLoopUnswitch.cpp2888 if (AR.MSSA) { in run()
2889 MSSAU = MemorySSAUpdater(AR.MSSA); in run()
2891 AR.MSSA->verifyMemorySSA(); in run()
2897 if (AR.MSSA && VerifyMemorySSA) in run()
2898 AR.MSSA->verifyMemorySSA(); in run()
2905 if (AR.MSSA) in run()
2952 MemorySSA *MSSA = nullptr; in runOnLoop() local
2955 MSSA = &getAnalysis<MemorySSAWrapperPass>().getMSSA(); in runOnLoop()
2956 MSSAU = MemorySSAUpdater(MSSA); in runOnLoop()
2977 if (MSSA && VerifyMemorySSA) in runOnLoop()
[all …]
DNewGVN.cpp496 MemorySSA *MSSA = nullptr; member in __anon5ca5bcb10311::NewGVN
659 TargetLibraryInfo *TLI, AliasAnalysis *AA, MemorySSA *MSSA, in NewGVN() argument
661 : F(F), DT(DT), TLI(TLI), AA(AA), MSSA(MSSA), DL(DL), in NewGVN()
907 auto *Result = MSSA->getMemoryAccess(I); in getMemoryAccess()
913 return MSSA->getMemoryAccess(BB); in getMemoryAccess()
1379 StoreRHS = MSSA->getLiveOnEntryDef(); in performSymbolicStoreEvaluation()
1507 if (!MSSA->isLiveOnEntryDef(DefiningAccess)) { in performSymbolicLoadEvaluation()
1643 if (auto *MA = MSSA->getMemoryAccess(CI)) { in performSymbolicCallEvaluation()
2868 TOPClass->setMemoryLeader(MSSA->getLiveOnEntryDef()); in initializeCongruenceClasses()
2870 MemoryAccessToClass[MSSA->getLiveOnEntryDef()] = in initializeCongruenceClasses()
[all …]
DLoopLoadElimination.cpp704 MemorySSA *MSSA = EnableMSSALoopDependency in run() local
711 LoopStandardAnalysisResults AR = {AA, AC, DT, LI, SE, TLI, TTI, MSSA}; in run()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DMemorySSAUpdater.h72 MemorySSA *MSSA;
82 MemorySSAUpdater(MemorySSA *MSSA) : MSSA(MSSA) {} in MemorySSAUpdater() argument
236 if (MemoryAccess *MA = MSSA->getMemoryAccess(I))
260 MemorySSA* getMemorySSA() const { return MSSA; } in getMemorySSA()
DMemorySSA.h935 Result(std::unique_ptr<MemorySSA> &&MSSA) : MSSA(std::move(MSSA)) {}
937 MemorySSA &getMSSA() { return *MSSA.get(); }
939 std::unique_ptr<MemorySSA> MSSA;
972 MemorySSA &getMSSA() { return *MSSA; }
973 const MemorySSA &getMSSA() const { return *MSSA; }
981 std::unique_ptr<MemorySSA> MSSA;
1025 MemoryAccess *MA = MSSA->getMemoryAccess(I);
1058 MemorySSA *MSSA;
DLoopAnalysisManager.h61 MemorySSA *MSSA; member
DAliasSetTracker.h347 MemorySSA *MSSA = nullptr; variable
362 : AA(aa), MSSA(mssa), L(l) {} in AliasSetTracker()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DInterleavedLoadCombinePass.cpp66 InterleavedLoadCombineImpl(Function &F, DominatorTree &DT, MemorySSA &MSSA, in InterleavedLoadCombineImpl()
68 : F(F), DT(DT), MSSA(MSSA), in InterleavedLoadCombineImpl()
84 MemorySSA &MSSA; member
1184 auto FMA = MSSA.getMemoryAccess(First); in combine()
1186 auto MADef = MSSA.getMemoryAccess(LI)->getDefiningAccess(); in combine()
1187 if (!MSSA.dominates(MADef, FMA)) in combine()
1225 auto MSSAU = MemorySSAUpdater(&MSSA); in combine()
1227 LI, nullptr, MSSA.getMemoryAccess(InsertionPoint))); in combine()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLoopSimplify.cpp806 MemorySSA *MSSA = nullptr; in runOnFunction() local
811 MSSA = &MSSAAnalysis->getMSSA(); in runOnFunction()
812 MSSAU = std::make_unique<MemorySSAUpdater>(MSSA); in runOnFunction()
842 auto *MSSA = &MSSAAnalysis->getMSSA(); in run() local
843 MSSAU = std::make_unique<MemorySSAUpdater>(MSSA); in run()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Scalar/
DLoopPassManager.h298 MemorySSA *MSSA = UseMemorySSA
308 MSSA};
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp7972 MemorySSA *MSSA = EnableMSSALoopDependency in run() local
7979 LoopStandardAnalysisResults AR = {AA, AC, DT, LI, SE, TLI, TTI, MSSA}; in run()