/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | LoopSimplifyCFG.cpp | 123 MemorySSAUpdater *MSSAU; member in __anon30b0ffd50111::ConstantTerminatorFoldingImpl 358 Preheader, Preheader->getTerminator(), &DT, &LI, MSSAU); in handleDeadExits() 412 if (MSSAU) in handleDeadExits() 413 MSSAU->applyUpdates(DTUpdates, DT); in handleDeadExits() 419 if (MSSAU) { in handleDeadExits() 422 MSSAU->applyUpdates(DTUpdates, DT); in handleDeadExits() 425 MSSAU->getMemorySSA()->verifyMemorySSA(); in handleDeadExits() 432 if (MSSAU) { in deleteDeadLoopBlocks() 435 MSSAU->removeBlocks(DeadLoopBlocksSet); in deleteDeadLoopBlocks() 497 if (MSSAU) in foldTerminators() [all …]
|
D | LoopInstSimplify.cpp | 53 MemorySSAUpdater *MSSAU) { in simplifyLoopInst() argument 80 MemorySSA *MSSA = MSSAU ? MSSAU->getMemorySSA() : nullptr; in simplifyLoopInst() 84 if (MSSAU && VerifyMemorySSA) in simplifyLoopInst() 137 if (MSSAU) in simplifyLoopInst() 155 RecursivelyDeleteTriviallyDeadInstructions(DeadInsts, &TLI, MSSAU); in simplifyLoopInst() 158 if (MSSAU && VerifyMemorySSA) in simplifyLoopInst() 199 Optional<MemorySSAUpdater> MSSAU; in runOnLoop() local 202 MSSAU = MemorySSAUpdater(MSSA); in runOnLoop() 206 MSSAU.hasValue() ? MSSAU.getPointer() : nullptr); in runOnLoop() 227 Optional<MemorySSAUpdater> MSSAU; in run() local [all …]
|
D | LICM.cpp | 141 MemorySSAUpdater *MSSAU, ScalarEvolution *SE, 145 MemorySSAUpdater *MSSAU, OptimizationRemarkEmitter *ORE); 160 const LoopSafetyInfo *SafetyInfo, MemorySSAUpdater *MSSAU); 163 AliasSetTracker *AST, MemorySSAUpdater *MSSAU); 167 MemorySSAUpdater *MSSAU, ScalarEvolution *SE); 192 MemorySSAUpdater *MSSAU); 343 std::unique_ptr<MemorySSAUpdater> MSSAU; in runOnLoop() local 352 MSSAU = std::make_unique<MemorySSAUpdater>(MSSA); in runOnLoop() 392 CurAST.get(), MSSAU.get(), &SafetyInfo, Flags, ORE); in runOnLoop() 397 CurAST.get(), MSSAU.get(), SE, &SafetyInfo, Flags, ORE); in runOnLoop() [all …]
|
D | SimpleLoopUnswitch.cpp | 268 MemorySSAUpdater *MSSAU, ScalarEvolution *SE) { in hoistLoopToNewParent() argument 329 formDedicatedExitBlocks(OldContainingL, &DT, &LI, MSSAU, in hoistLoopToNewParent() 367 MemorySSAUpdater *MSSAU) { in unswitchTrivialBranch() argument 442 if (MSSAU && VerifyMemorySSA) in unswitchTrivialBranch() 443 MSSAU->getMemorySSA()->verifyMemorySSA(); in unswitchTrivialBranch() 449 BasicBlock *NewPH = SplitEdge(OldPH, L.getHeader(), &DT, &LI, MSSAU); in unswitchTrivialBranch() 462 SplitBlock(LoopExitBB, &LoopExitBB->front(), &DT, &LI, MSSAU); in unswitchTrivialBranch() 465 if (MSSAU && VerifyMemorySSA) in unswitchTrivialBranch() 466 MSSAU->getMemorySSA()->verifyMemorySSA(); in unswitchTrivialBranch() 478 if (MSSAU) { in unswitchTrivialBranch() [all …]
|
D | LoopRotation.cpp | 46 Optional<MemorySSAUpdater> MSSAU; in run() local 48 MSSAU = MemorySSAUpdater(AR.MSSA); in run() 50 MSSAU.hasValue() ? MSSAU.getPointer() : nullptr, in run() 100 Optional<MemorySSAUpdater> MSSAU; in runOnLoop() local 106 MSSAU = MemorySSAUpdater(&MSSAA->getMSSA()); in runOnLoop() 109 MSSAU.hasValue() ? MSSAU.getPointer() : nullptr, SQ, in runOnLoop()
|
D | LoopUnswitch.cpp | 187 std::unique_ptr<MemorySSAUpdater> MSSAU; member in __anon49ee500d0111::LoopUnswitch 425 MemorySSAUpdater *MSSAU) { in FindLIVLoopCondition() argument 443 if (L->makeLoopInvariant(Cond, Changed, nullptr, MSSAU)) { in FindLIVLoopCondition() 483 ParentChain, Cache, MSSAU)) { in FindLIVLoopCondition() 491 ParentChain, Cache, MSSAU)) { in FindLIVLoopCondition() 507 MemorySSAUpdater *MSSAU) { in FindLIVLoopCondition() argument 510 Value *FCond = FindLIVLoopCondition(Cond, L, Changed, OpChain, Cache, MSSAU); in FindLIVLoopCondition() 530 MSSAU = std::make_unique<MemorySSAUpdater>(MSSA); in runOnLoop() 700 Changed, MSSAU.get()) in processCurrentLoop() 742 Changed, MSSAU.get()) in processCurrentLoop() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | LoopSimplifyCFG.cpp | 125 MemorySSAUpdater *MSSAU; member in __anon58198de10111::ConstantTerminatorFoldingImpl 360 Preheader, Preheader->getTerminator(), &DT, &LI, MSSAU); in handleDeadExits() 419 if (MSSAU) in handleDeadExits() 420 MSSAU->applyUpdates(DTUpdates, DT); in handleDeadExits() 426 if (MSSAU) { in handleDeadExits() 429 MSSAU->applyUpdates(DTUpdates, DT); in handleDeadExits() 432 MSSAU->getMemorySSA()->verifyMemorySSA(); in handleDeadExits() 439 if (MSSAU) { in deleteDeadLoopBlocks() 442 MSSAU->removeBlocks(DeadLoopBlocksSet); in deleteDeadLoopBlocks() 504 if (MSSAU) in foldTerminators() [all …]
|
D | LoopInstSimplify.cpp | 53 MemorySSAUpdater *MSSAU) { in simplifyLoopInst() argument 80 MemorySSA *MSSA = MSSAU ? MSSAU->getMemorySSA() : nullptr; in simplifyLoopInst() 84 if (MSSAU && VerifyMemorySSA) in simplifyLoopInst() 137 if (MSSAU) in simplifyLoopInst() 155 RecursivelyDeleteTriviallyDeadInstructions(DeadInsts, &TLI, MSSAU); in simplifyLoopInst() 158 if (MSSAU && VerifyMemorySSA) in simplifyLoopInst() 199 Optional<MemorySSAUpdater> MSSAU; in runOnLoop() local 202 MSSAU = MemorySSAUpdater(MSSA); in runOnLoop() 206 MSSAU.hasValue() ? MSSAU.getPointer() : nullptr); in runOnLoop() 227 Optional<MemorySSAUpdater> MSSAU; in run() local [all …]
|
D | LICM.cpp | 157 MemorySSAUpdater *MSSAU, ScalarEvolution *SE, 161 ICFLoopSafetyInfo *SafetyInfo, MemorySSAUpdater *MSSAU, 179 const LoopSafetyInfo *SafetyInfo, MemorySSAUpdater *MSSAU); 182 AliasSetTracker *AST, MemorySSAUpdater *MSSAU); 186 MemorySSAUpdater *MSSAU, ScalarEvolution *SE); 208 MemorySSAUpdater *MSSAU); 356 std::unique_ptr<MemorySSAUpdater> MSSAU; in runOnLoop() local 366 MSSAU = std::make_unique<MemorySSAUpdater>(MSSA); in runOnLoop() 390 CurAST.get(), MSSAU.get(), &SafetyInfo, *Flags.get(), ORE); in runOnLoop() 394 CurAST.get(), MSSAU.get(), SE, &SafetyInfo, in runOnLoop() [all …]
|
D | SimpleLoopUnswitch.cpp | 275 MemorySSAUpdater *MSSAU, ScalarEvolution *SE) { in hoistLoopToNewParent() argument 336 formDedicatedExitBlocks(OldContainingL, &DT, &LI, MSSAU, in hoistLoopToNewParent() 374 MemorySSAUpdater *MSSAU) { in unswitchTrivialBranch() argument 449 if (MSSAU && VerifyMemorySSA) in unswitchTrivialBranch() 450 MSSAU->getMemorySSA()->verifyMemorySSA(); in unswitchTrivialBranch() 456 BasicBlock *NewPH = SplitEdge(OldPH, L.getHeader(), &DT, &LI, MSSAU); in unswitchTrivialBranch() 469 SplitBlock(LoopExitBB, &LoopExitBB->front(), &DT, &LI, MSSAU); in unswitchTrivialBranch() 472 if (MSSAU && VerifyMemorySSA) in unswitchTrivialBranch() 473 MSSAU->getMemorySSA()->verifyMemorySSA(); in unswitchTrivialBranch() 485 if (MSSAU) { in unswitchTrivialBranch() [all …]
|
D | LoopRotation.cpp | 53 Optional<MemorySSAUpdater> MSSAU; in run() local 55 MSSAU = MemorySSAUpdater(AR.MSSA); in run() 57 MSSAU.hasValue() ? MSSAU.getPointer() : nullptr, in run() 107 Optional<MemorySSAUpdater> MSSAU; in runOnLoop() local 113 MSSAU = MemorySSAUpdater(&MSSAA->getMSSA()); in runOnLoop() 123 MSSAU.hasValue() ? MSSAU.getPointer() : nullptr, SQ, in runOnLoop()
|
D | MemCpyOptimizer.cpp | 331 if (MSSAU) in eraseInstruction() 332 MSSAU->removeMemoryAccess(I); in eraseInstruction() 391 if (MSSAU) { in tryMergingIntoMemset() 393 MSSAU->getMemorySSA()->getMemoryAccess(&*BI)); in tryMergingIntoMemset() 489 if (MSSAU) { in tryMergingIntoMemset() 494 ? MSSAU->createMemoryAccessBefore( in tryMergingIntoMemset() 496 : MSSAU->createMemoryAccessAfter( in tryMergingIntoMemset() 498 MSSAU->insertDef(NewDef, /*RenameUses=*/true); in tryMergingIntoMemset() 610 if (MSSAU) { in moveUp() 611 if (MemoryUseOrDef *MA = MSSAU->getMemorySSA()->getMemoryAccess(P)) { in moveUp() [all …]
|
D | LoopSink.cpp | 188 DominatorTree &DT, BlockFrequencyInfo &BFI, MemorySSAUpdater *MSSAU) { in sinkInstruction() argument 243 if (MSSAU && MSSAU->getMemorySSA()->getMemoryAccess(&I)) { in sinkInstruction() 246 MSSAU->createMemoryAccessInBB(IC, nullptr, N, MemorySSA::Beginning); in sinkInstruction() 249 MSSAU->insertDef(MemDef, /*RenameUses=*/true); in sinkInstruction() 252 MSSAU->insertUse(MemUse, /*RenameUses=*/true); in sinkInstruction() 271 if (MSSAU) in sinkInstruction() 273 MSSAU->getMemorySSA()->getMemoryAccess(&I))) in sinkInstruction() 274 MSSAU->moveToPlace(OldMemAcc, MoveBB, MemorySSA::Beginning); in sinkInstruction() 302 std::unique_ptr<MemorySSAUpdater> MSSAU; in sinkLoopInvariantInstructions() local 305 MSSAU = std::make_unique<MemorySSAUpdater>(MSSA); in sinkLoopInvariantInstructions() [all …]
|
D | LoopUnswitch.cpp | 188 std::unique_ptr<MemorySSAUpdater> MSSAU; member in __anone476b9990111::LoopUnswitch 428 MemorySSAUpdater *MSSAU) { in findLIVLoopCondition() argument 446 if (L->makeLoopInvariant(Cond, Changed, nullptr, MSSAU)) { in findLIVLoopCondition() 486 ParentChain, Cache, MSSAU)) { in findLIVLoopCondition() 494 ParentChain, Cache, MSSAU)) { in findLIVLoopCondition() 510 MemorySSAUpdater *MSSAU) { in findLIVLoopCondition() argument 513 Value *FCond = findLIVLoopCondition(Cond, L, Changed, OpChain, Cache, MSSAU); in findLIVLoopCondition() 533 MSSAU = std::make_unique<MemorySSAUpdater>(MSSA); in runOnLoop() 705 Changed, MSSAU.get()) in processCurrentLoop() 748 Changed, MSSAU.get()) in processCurrentLoop() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | LoopRotationUtils.cpp | 58 MemorySSAUpdater *MSSAU; member in __anon074700b40111::LoopRotate 66 DominatorTree *DT, ScalarEvolution *SE, MemorySSAUpdater *MSSAU, in LoopRotate() argument 69 MSSAU(MSSAU), SQ(SQ), RotationOnly(RotationOnly), in LoopRotate() 282 if (MSSAU && VerifyMemorySSA) in rotateLoop() 283 MSSAU->getMemorySSA()->verifyMemorySSA(); in rotateLoop() 387 if (MSSAU) in rotateLoop() 407 if (MSSAU) { in rotateLoop() 409 MSSAU->updateForClonedBlockIntoPred(OrigHeader, OrigPreheader, in rotateLoop() 439 if (MSSAU) { in rotateLoop() 440 MSSAU->applyUpdates(Updates, *DT); in rotateLoop() [all …]
|
D | LoopSimplify.cpp | 124 LoopInfo *LI, MemorySSAUpdater *MSSAU, in InsertPreheaderForLoop() argument 148 LI, MSSAU, PreserveLCSSA); in InsertPreheaderForLoop() 228 AssumptionCache *AC, MemorySSAUpdater *MSSAU) { in separateNestedLoop() argument 262 DT, LI, MSSAU, PreserveLCSSA); in separateNestedLoop() 325 formDedicatedExitBlocks(L, DT, LI, MSSAU, PreserveLCSSA); in separateNestedLoop() 351 MemorySSAUpdater *MSSAU) { in insertUniqueBackedgeBlock() argument 464 if (MSSAU) in insertUniqueBackedgeBlock() 465 MSSAU->updatePhisWhenInsertingUniqueBackedgeBlock(Header, Preheader, in insertUniqueBackedgeBlock() 475 MemorySSAUpdater *MSSAU, bool PreserveLCSSA) { in simplifyOneLoop() argument 477 if (MSSAU && VerifyMemorySSA) in simplifyOneLoop() [all …]
|
D | BasicBlockUtils.cpp | 172 LoopInfo *LI, MemorySSAUpdater *MSSAU, in MergeBlockIntoPredecessor() argument 258 if (MSSAU) in MergeBlockIntoPredecessor() 259 MSSAU->moveAllAfterMergeBlocks(BB, PredBB, Start); in MergeBlockIntoPredecessor() 279 if (MSSAU) in MergeBlockIntoPredecessor() 281 MSSAU->getMemorySSA()->getMemoryAccess(PredBB->getTerminator()))) in MergeBlockIntoPredecessor() 282 MSSAU->moveToPlace(MUD, PredBB, MemorySSA::End); in MergeBlockIntoPredecessor() 475 LoopInfo *LI, MemorySSAUpdater *MSSAU) { in SplitEdge() argument 482 CriticalEdgeSplittingOptions(DT, LI, MSSAU).setPreserveLCSSA())) in SplitEdge() 492 return SplitBlock(Succ, &Succ->front(), DT, LI, MSSAU); in SplitEdge() 499 return SplitBlock(BB, BB->getTerminator(), DT, LI, MSSAU); in SplitEdge() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | LoopSimplify.cpp | 124 LoopInfo *LI, MemorySSAUpdater *MSSAU, in InsertPreheaderForLoop() argument 148 LI, MSSAU, PreserveLCSSA); in InsertPreheaderForLoop() 227 AssumptionCache *AC, MemorySSAUpdater *MSSAU) { in separateNestedLoop() argument 282 DT, LI, MSSAU, PreserveLCSSA); in separateNestedLoop() 344 formDedicatedExitBlocks(L, DT, LI, MSSAU, PreserveLCSSA); in separateNestedLoop() 370 MemorySSAUpdater *MSSAU) { in insertUniqueBackedgeBlock() argument 483 if (MSSAU) in insertUniqueBackedgeBlock() 484 MSSAU->updatePhisWhenInsertingUniqueBackedgeBlock(Header, Preheader, in insertUniqueBackedgeBlock() 494 MemorySSAUpdater *MSSAU, bool PreserveLCSSA) { in simplifyOneLoop() argument 496 if (MSSAU && VerifyMemorySSA) in simplifyOneLoop() [all …]
|
D | LoopRotationUtils.cpp | 65 MemorySSAUpdater *MSSAU; member in __anon1bc150400111::LoopRotate 73 DominatorTree *DT, ScalarEvolution *SE, MemorySSAUpdater *MSSAU, in LoopRotate() argument 76 MSSAU(MSSAU), SQ(SQ), RotationOnly(RotationOnly), in LoopRotate() 347 if (MSSAU && VerifyMemorySSA) in rotateLoop() 348 MSSAU->getMemorySSA()->verifyMemorySSA(); in rotateLoop() 452 if (MSSAU) in rotateLoop() 472 if (MSSAU) { in rotateLoop() 474 MSSAU->updateForClonedBlockIntoPred(OrigHeader, OrigPreheader, in rotateLoop() 504 if (MSSAU) { in rotateLoop() 505 MSSAU->applyUpdates(Updates, *DT); in rotateLoop() [all …]
|
D | BasicBlockUtils.cpp | 157 MemorySSAUpdater *MSSAU) { in DeleteDeadPHIs() argument 167 Changed |= RecursivelyDeleteDeadPHINode(PN, TLI, MSSAU); in DeleteDeadPHIs() 173 LoopInfo *LI, MemorySSAUpdater *MSSAU, in MergeBlockIntoPredecessor() argument 259 if (MSSAU) in MergeBlockIntoPredecessor() 260 MSSAU->moveAllAfterMergeBlocks(BB, PredBB, Start); in MergeBlockIntoPredecessor() 280 if (MSSAU) in MergeBlockIntoPredecessor() 282 MSSAU->getMemorySSA()->getMemoryAccess(PredBB->getTerminator()))) in MergeBlockIntoPredecessor() 283 MSSAU->moveToPlace(MUD, PredBB, MemorySSA::End); in MergeBlockIntoPredecessor() 496 LoopInfo *LI, MemorySSAUpdater *MSSAU) { in SplitEdge() argument 503 CriticalEdgeSplittingOptions(DT, LI, MSSAU).setPreserveLCSSA())) in SplitEdge() [all …]
|
/external/llvm-project/llvm/include/llvm/Transforms/Utils/ |
D | BasicBlockUtils.h | 85 MemorySSAUpdater *MSSAU = nullptr); 96 MemorySSAUpdater *MSSAU = nullptr, 139 MemorySSAUpdater *MSSAU; member 151 MemorySSAUpdater *MSSAU = nullptr, 153 : DT(DT), PDT(PDT), LI(LI), MSSAU(MSSAU) {} in DT() 250 MemorySSAUpdater *MSSAU = nullptr); 258 MemorySSAUpdater *MSSAU = nullptr, 279 MemorySSAUpdater *MSSAU = nullptr, 297 MemorySSAUpdater *MSSAU = nullptr, bool PreserveLCSSA = false);
|
D | Local.h | 97 MemorySSAUpdater *MSSAU = nullptr, 111 const TargetLibraryInfo *TLI = nullptr, MemorySSAUpdater *MSSAU = nullptr, 121 const TargetLibraryInfo *TLI = nullptr, MemorySSAUpdater *MSSAU = nullptr, 132 MemorySSAUpdater *MSSAU = nullptr); 201 bool FoldBranchToCommonDest(BranchInst *BI, MemorySSAUpdater *MSSAU = nullptr, 359 MemorySSAUpdater *MSSAU = nullptr); 380 MemorySSAUpdater *MSSAU = nullptr);
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
D | BasicBlockUtils.h | 93 MemorySSAUpdater *MSSAU = nullptr, 125 MemorySSAUpdater *MSSAU; member 133 MemorySSAUpdater *MSSAU = nullptr, 135 : DT(DT), PDT(PDT), LI(LI), MSSAU(MSSAU) {} in DT() 227 MemorySSAUpdater *MSSAU = nullptr); 235 MemorySSAUpdater *MSSAU = nullptr, 256 MemorySSAUpdater *MSSAU = nullptr, 274 MemorySSAUpdater *MSSAU = nullptr, bool PreserveLCSSA = false);
|
D | Local.h | 145 MemorySSAUpdater *MSSAU = nullptr); 157 const TargetLibraryInfo *TLI = nullptr, MemorySSAUpdater *MSSAU = nullptr); 234 bool FoldBranchToCommonDest(BranchInst *BI, MemorySSAUpdater *MSSAU = nullptr, 399 MemorySSAUpdater *MSSAU = nullptr); 420 MemorySSAUpdater *MSSAU = nullptr);
|
D | LoopUtils.h | 54 MemorySSAUpdater *MSSAU, bool PreserveLCSSA); 62 MemorySSAUpdater *MSSAU, bool PreserveLCSSA); 292 MemorySSAUpdater *MSSAU, bool TargetExecutesOncePerLoop,
|