Home
last modified time | relevance | path

Searched refs:ParentBB (Results 1 – 20 of 20) sorted by relevance

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DSimpleLoopUnswitch.cpp401 auto *ParentBB = BI.getParent(); in unswitchTrivialBranch() local
402 if (!areLoopExitPHIsLoopInvariant(L, *ParentBB, *LoopExitBB)) in unswitchTrivialBranch()
481 ParentBB->getInstList().push_back(BI.clone()); in unswitchTrivialBranch()
485 BranchInst::Create(ContinueBB, ParentBB); in unswitchTrivialBranch()
519 ParentBB->getTerminator()->eraseFromParent(); in unswitchTrivialBranch()
521 BranchInst::Create(ContinueBB, ParentBB); in unswitchTrivialBranch()
522 MSSAU->removeEdge(ParentBB, LoopExitBB); in unswitchTrivialBranch()
524 DT.deleteEdge(ParentBB, LoopExitBB); in unswitchTrivialBranch()
532 rewritePHINodesForUnswitchedExitBlock(*UnswitchedBB, *ParentBB, *OldPH); in unswitchTrivialBranch()
535 *ParentBB, *OldPH, FullUnswitch); in unswitchTrivialBranch()
[all …]
DSpeculateAroundPHIs.cpp116 auto *ParentBB = OpI->getParent(); in isSafeToSpeculatePHIUsers() local
117 if (ParentBB == PhiBB) { in isSafeToSpeculatePHIUsers()
122 } else if (DT.dominates(ParentBB, PhiBB)) { in isSafeToSpeculatePHIUsers()
134 if (UnsafeSet.count(OpI) || ParentBB != PhiBB || in isSafeToSpeculatePHIUsers()
567 auto *ParentBB = SpecPNs[0]->getParent(); in speculatePHIs() local
572 PredBB, ParentBB, in speculatePHIs()
580 assert(PredBB->getSingleSuccessor() == ParentBB && in speculatePHIs()
629 if (!OpPN || OpPN->getParent() != ParentBB) in speculatePHIs()
654 assert(PredBB->getSingleSuccessor() == ParentBB && in speculatePHIs()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DSimpleLoopUnswitch.cpp408 auto *ParentBB = BI.getParent(); in unswitchTrivialBranch() local
409 if (!areLoopExitPHIsLoopInvariant(L, *ParentBB, *LoopExitBB)) in unswitchTrivialBranch()
488 ParentBB->getInstList().push_back(BI.clone()); in unswitchTrivialBranch()
492 BranchInst::Create(ContinueBB, ParentBB); in unswitchTrivialBranch()
526 ParentBB->getTerminator()->eraseFromParent(); in unswitchTrivialBranch()
528 BranchInst::Create(ContinueBB, ParentBB); in unswitchTrivialBranch()
529 MSSAU->removeEdge(ParentBB, LoopExitBB); in unswitchTrivialBranch()
531 DT.deleteEdge(ParentBB, LoopExitBB); in unswitchTrivialBranch()
539 rewritePHINodesForUnswitchedExitBlock(*UnswitchedBB, *ParentBB, *OldPH); in unswitchTrivialBranch()
542 *ParentBB, *OldPH, FullUnswitch); in unswitchTrivialBranch()
[all …]
DSpeculateAroundPHIs.cpp116 auto *ParentBB = OpI->getParent(); in isSafeToSpeculatePHIUsers() local
117 if (ParentBB == PhiBB) { in isSafeToSpeculatePHIUsers()
122 } else if (DT.dominates(ParentBB, PhiBB)) { in isSafeToSpeculatePHIUsers()
134 if (UnsafeSet.count(OpI) || ParentBB != PhiBB || in isSafeToSpeculatePHIUsers()
571 auto *ParentBB = SpecPNs[0]->getParent(); in speculatePHIs() local
576 PredBB, ParentBB, in speculatePHIs()
584 assert(PredBB->getSingleSuccessor() == ParentBB && in speculatePHIs()
633 if (!OpPN || OpPN->getParent() != ParentBB) in speculatePHIs()
658 assert(PredBB->getSingleSuccessor() == ParentBB && in speculatePHIs()
/external/llvm/lib/Analysis/
DCFG.cpp42 const BasicBlock *ParentBB = Top.first; in FindFunctionBackedges() local
46 while (I != succ_end(ParentBB)) { in FindFunctionBackedges()
54 Result.push_back(std::make_pair(ParentBB, BB)); in FindFunctionBackedges()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DCFG.cpp42 const BasicBlock *ParentBB = Top.first; in FindFunctionBackedges() local
46 while (I != succ_end(ParentBB)) { in FindFunctionBackedges()
54 Result.push_back(std::make_pair(ParentBB, BB)); in FindFunctionBackedges()
DLazyValueInfo.cpp2007 auto *ParentBB = I->getParent(); in emitInstructionAnnot() local
2024 printResult(ParentBB); in emitInstructionAnnot()
2027 for (auto *BBSucc : successors(ParentBB)) in emitInstructionAnnot()
2028 if (DT.dominates(ParentBB, BBSucc)) in emitInstructionAnnot()
2034 if (!isa<PHINode>(UseI) || DT.dominates(ParentBB, UseI->getParent())) in emitInstructionAnnot()
/external/llvm-project/llvm/lib/Analysis/
DCFG.cpp49 const BasicBlock *ParentBB = Top.first; in FindFunctionBackedges() local
53 while (I != succ_end(ParentBB)) { in FindFunctionBackedges()
61 Result.push_back(std::make_pair(ParentBB, BB)); in FindFunctionBackedges()
DLazyValueInfo.cpp1892 auto *ParentBB = I->getParent(); in emitInstructionAnnot() local
1909 printResult(ParentBB); in emitInstructionAnnot()
1912 for (auto *BBSucc : successors(ParentBB)) in emitInstructionAnnot()
1913 if (DT.dominates(ParentBB, BBSucc)) in emitInstructionAnnot()
1919 if (!isa<PHINode>(UseI) || DT.dominates(ParentBB, UseI->getParent())) in emitInstructionAnnot()
/external/llvm-project/llvm/lib/Transforms/Utils/
DLocal.cpp227 BasicBlock *ParentBB = SI->getParent(); in ConstantFoldTerminator() local
228 DefaultDest->removePredecessor(ParentBB); in ConstantFoldTerminator()
234 {{DominatorTree::Delete, ParentBB, DefaultDest}}); in ConstantFoldTerminator()
339 BasicBlock *ParentBB = IBI->getParent(); in ConstantFoldTerminator() local
341 DestBB->removePredecessor(ParentBB); in ConstantFoldTerminator()
343 Updates.push_back({DominatorTree::Delete, ParentBB, DestBB}); in ConstantFoldTerminator()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLocal.cpp206 BasicBlock *ParentBB = SI->getParent(); in ConstantFoldTerminator() local
207 DefaultDest->removePredecessor(ParentBB); in ConstantFoldTerminator()
212 {{DominatorTree::Delete, ParentBB, DefaultDest}}); in ConstantFoldTerminator()
317 BasicBlock *ParentBB = IBI->getParent(); in ConstantFoldTerminator() local
319 DestBB->removePredecessor(ParentBB); in ConstantFoldTerminator()
321 Updates.push_back({DominatorTree::Delete, ParentBB, DestBB}); in ConstantFoldTerminator()
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.h662 MachineBasicBlock *ParentBB);
DSelectionDAGBuilder.cpp2507 MachineBasicBlock *ParentBB) { in visitSPDescriptorParent() argument
2514 MachineFrameInfo &MFI = ParentBB->getParent()->getFrameInfo(); in visitSPDescriptorParent()
2520 const Module &M = *ParentBB->getParent()->getFunction().getParent(); in visitSPDescriptorParent()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.h671 MachineBasicBlock *ParentBB);
DSelectionDAGBuilder.cpp2534 MachineBasicBlock *ParentBB) { in visitSPDescriptorParent() argument
2541 MachineFrameInfo &MFI = ParentBB->getParent()->getFrameInfo(); in visitSPDescriptorParent()
2547 const Module &M = *ParentBB->getParent()->getFunction().getParent(); in visitSPDescriptorParent()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.h809 MachineBasicBlock *ParentBB);
DSelectionDAGBuilder.cpp2031 MachineBasicBlock *ParentBB) { in visitSPDescriptorParent() argument
2037 MachineFrameInfo *MFI = ParentBB->getParent()->getFrameInfo(); in visitSPDescriptorParent()
2043 const Module &M = *ParentBB->getParent()->getFunction()->getParent(); in visitSPDescriptorParent()
/external/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp4263 BasicBlock *ParentBB, LoopInfo *LI) { in getReductionValue() argument
4276 if (P->getIncomingBlock(0) == ParentBB) { in getReductionValue()
4278 } else if (P->getIncomingBlock(1) == ParentBB) { in getReductionValue()
4286 Loop *BBL = LI->getLoopFor(ParentBB); in getReductionValue()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp7033 BasicBlock *ParentBB, LoopInfo *LI) { in getReductionValue() argument
7045 if (P->getIncomingBlock(0) == ParentBB) { in getReductionValue()
7047 } else if (P->getIncomingBlock(1) == ParentBB) { in getReductionValue()
7055 Loop *BBL = LI->getLoopFor(ParentBB); in getReductionValue()
/external/llvm-project/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp7417 BasicBlock *ParentBB, LoopInfo *LI) { in getReductionValue() argument
7429 if (P->getIncomingBlock(0) == ParentBB) { in getReductionValue()
7431 } else if (P->getIncomingBlock(1) == ParentBB) { in getReductionValue()
7439 Loop *BBL = LI->getLoopFor(ParentBB); in getReductionValue()