Home
last modified time | relevance | path

Searched refs:LoopExitBB (Results 1 – 9 of 9) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Vectorize/
DVPlanHCFGBuilder.cpp307 BasicBlock *LoopExitBB = TheLoop->getUniqueExitBlock(); in buildPlainCFG() local
308 assert(LoopExitBB && "Loops with multiple exits are not supported."); in buildPlainCFG()
309 VPBasicBlock *LoopExitVPBB = BB2VPBB[LoopExitBB]; in buildPlainCFG()
310 createVPInstructionsForVPBB(LoopExitVPBB, LoopExitBB); in buildPlainCFG()
313 setVPBBPredsFromBB(LoopExitVPBB, LoopExitBB); in buildPlainCFG()
/external/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp923 BasicBlock *LoopExitBB = nullptr; in TryTrivialLoopUnswitch() local
942 if ((LoopExitBB = isTrivialLoopExitBlock(currentLoop, in TryTrivialLoopUnswitch()
945 } else if ((LoopExitBB = isTrivialLoopExitBlock(currentLoop, in TryTrivialLoopUnswitch()
952 if (!LoopExitBB || isa<PHINode>(LoopExitBB->begin())) in TryTrivialLoopUnswitch()
955 UnswitchTrivialCondition(currentLoop, LoopCond, CondVal, LoopExitBB, in TryTrivialLoopUnswitch()
987 LoopExitBB = LoopExitCandidate; in TryTrivialLoopUnswitch()
995 if (!LoopExitBB || isa<PHINode>(LoopExitBB->begin())) in TryTrivialLoopUnswitch()
998 UnswitchTrivialCondition(currentLoop, LoopCond, CondVal, LoopExitBB, in TryTrivialLoopUnswitch()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp1093 BasicBlock *LoopExitBB = nullptr; in TryTrivialLoopUnswitch() local
1112 if ((LoopExitBB = isTrivialLoopExitBlock(currentLoop, in TryTrivialLoopUnswitch()
1115 } else if ((LoopExitBB = isTrivialLoopExitBlock(currentLoop, in TryTrivialLoopUnswitch()
1122 if (!LoopExitBB || isa<PHINode>(LoopExitBB->begin())) in TryTrivialLoopUnswitch()
1128 UnswitchTrivialCondition(currentLoop, LoopCond, CondVal, LoopExitBB, in TryTrivialLoopUnswitch()
1159 LoopExitBB = LoopExitCandidate; in TryTrivialLoopUnswitch()
1167 if (!LoopExitBB || isa<PHINode>(LoopExitBB->begin())) in TryTrivialLoopUnswitch()
1170 UnswitchTrivialCondition(currentLoop, LoopCond, CondVal, LoopExitBB, in TryTrivialLoopUnswitch()
DSimpleLoopUnswitch.cpp355 auto *LoopExitBB = BI.getSuccessor(0); in unswitchTrivialBranch() local
356 if (L.contains(LoopExitBB)) { in unswitchTrivialBranch()
359 LoopExitBB = BI.getSuccessor(1); in unswitchTrivialBranch()
360 if (L.contains(LoopExitBB)) in unswitchTrivialBranch()
365 if (!areLoopExitPHIsLoopInvariant(L, *ParentBB, *LoopExitBB)) in unswitchTrivialBranch()
397 if (Loop *ExitL = LI.getLoopFor(LoopExitBB)) in unswitchTrivialBranch()
415 if (FullUnswitch && LoopExitBB->getUniquePredecessor()) { in unswitchTrivialBranch()
416 assert(LoopExitBB->getUniquePredecessor() == BI.getParent() && in unswitchTrivialBranch()
418 UnswitchedBB = LoopExitBB; in unswitchTrivialBranch()
420 UnswitchedBB = SplitBlock(LoopExitBB, &LoopExitBB->front(), &DT, &LI); in unswitchTrivialBranch()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopUnswitch.cpp356 BasicBlock *LoopExitBB = 0; in IsTrivialUnswitchCondition() local
367 if ((LoopExitBB = isTrivialLoopExitBlock(currentLoop, in IsTrivialUnswitchCondition()
370 } else if ((LoopExitBB = isTrivialLoopExitBlock(currentLoop, in IsTrivialUnswitchCondition()
383 if ((LoopExitBB = isTrivialLoopExitBlock(currentLoop, in IsTrivialUnswitchCondition()
393 if (!LoopExitBB || isa<PHINode>(LoopExitBB->begin())) in IsTrivialUnswitchCondition()
396 if (LoopExit) *LoopExit = LoopExitBB; in IsTrivialUnswitchCondition()
/external/llvm/lib/CodeGen/
DShrinkWrap.cpp369 for (MachineBasicBlock *LoopExitBB: ExitBlocks) { in updateSaveRestorePoints()
370 IPdom = FindIDom<>(*IPdom, LoopExitBB->successors(), *MPDT); in updateSaveRestorePoints()
DMachinePipeliner.cpp2367 MachineBasicBlock *LoopExitBB = *LoopExitI; in generateEpilog() local
2370 MachineBasicBlock *EpilogStart = LoopExitBB; in generateEpilog()
2382 PredBB->replaceSuccessor(LoopExitBB, NewBB); in generateEpilog()
2383 NewBB->addSuccessor(LoopExitBB); in generateEpilog()
2385 if (EpilogStart == LoopExitBB) in generateEpilog()
2416 for (MachineInstr &MI : *LoopExitBB) { in generateEpilog()
2434 TII->InsertBranch(*LastEpilogBB, LoopExitBB, 0, Cond1, DebugLoc()); in generateEpilog()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DShrinkWrap.cpp423 for (MachineBasicBlock *LoopExitBB: ExitBlocks) { in updateSaveRestorePoints()
424 IPdom = FindIDom<>(*IPdom, LoopExitBB->successors(), *MPDT); in updateSaveRestorePoints()
DMachinePipeliner.cpp2487 MachineBasicBlock *LoopExitBB = *LoopExitI; in generateEpilog() local
2490 MachineBasicBlock *EpilogStart = LoopExitBB; in generateEpilog()
2502 PredBB->replaceSuccessor(LoopExitBB, NewBB); in generateEpilog()
2503 NewBB->addSuccessor(LoopExitBB); in generateEpilog()
2505 if (EpilogStart == LoopExitBB) in generateEpilog()
2538 for (MachineInstr &MI : *LoopExitBB) { in generateEpilog()
2556 TII->insertBranch(*LastEpilogBB, LoopExitBB, nullptr, Cond1, DebugLoc()); in generateEpilog()