Home
last modified time | relevance | path

Searched refs:DestBB (Results 1 – 25 of 26) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DBreakCriticalEdges.cpp109 BasicBlock *DestBB) { in createPHIsForSplitLoopExit() argument
115 for (PHINode &PN : DestBB->phis()) { in createPHIsForSplitLoopExit()
147 BasicBlock *DestBB = TI->getSuccessor(SuccNum); in SplitCriticalEdge() local
151 if (DestBB->isEHPad()) return nullptr; in SplitCriticalEdge()
158 isa<UnreachableInst>(DestBB->getFirstNonPHIOrDbgOrLifetime())) in SplitCriticalEdge()
163 TIBB->getName() + "." + DestBB->getName() + "_crit_edge"); in SplitCriticalEdge()
165 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); in SplitCriticalEdge()
180 for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) { in SplitCriticalEdge()
202 if (TI->getSuccessor(i) != DestBB) continue; in SplitCriticalEdge()
205 DestBB->removePredecessor(TIBB, Options.KeepOneInputPHIs); in SplitCriticalEdge()
[all …]
DLocal.cpp318 BasicBlock *DestBB = IBI->getDestination(i); in ConstantFoldTerminator() local
319 DestBB->removePredecessor(ParentBB); in ConstantFoldTerminator()
321 Updates.push_back({DominatorTree::Delete, ParentBB, DestBB}); in ConstantFoldTerminator()
670 void llvm::MergeBasicBlockIntoOnlyPred(BasicBlock *DestBB, in MergeBasicBlockIntoOnlyPred() argument
674 while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { in MergeBasicBlockIntoOnlyPred()
682 BasicBlock *PredBB = DestBB->getSinglePredecessor(); in MergeBasicBlockIntoOnlyPred()
686 if (PredBB == &DestBB->getParent()->getEntryBlock()) in MergeBasicBlockIntoOnlyPred()
694 Updates.push_back({DominatorTree::Delete, PredBB, DestBB}); in MergeBasicBlockIntoOnlyPred()
698 if (llvm::find(successors(*I), DestBB) == succ_end(*I)) in MergeBasicBlockIntoOnlyPred()
699 Updates.push_back({DominatorTree::Insert, *I, DestBB}); in MergeBasicBlockIntoOnlyPred()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DBranchRelaxation.cpp97 MachineBasicBlock *DestBB);
227 MachineBasicBlock *DestBB) { in splitBlockBeforeInstr() argument
249 OrigBB->addSuccessor(DestBB); in splitBlockBeforeInstr()
282 const MachineInstr &MI, const MachineBasicBlock &DestBB) const { in isBlockInRange()
284 int64_t DestOffset = BlockInfo[DestBB.getNumber()].Offset; in isBlockInRange()
290 << printMBBReference(DestBB) << " from " in isBlockInRange()
309 MachineBasicBlock *DestBB) { in fixupConditionalBranch() argument
312 TII->insertUnconditionalBranch(*MBB, DestBB, DL, &NewBrSize); in fixupConditionalBranch()
443 MachineBasicBlock *DestBB = TII->getBranchDestBlock(MI); in fixupUnconditionalBranch() local
445 int64_t DestOffset = BlockInfo[DestBB->getNumber()].Offset; in fixupUnconditionalBranch()
[all …]
DModuloSchedule.cpp1616 MachineBasicBlock *DestBB, MachineBasicBlock *SourceBB, unsigned Stage) { in moveStageBetweenBlocks() argument
1617 auto InsertPt = DestBB->getFirstNonPHI(); in moveStageBetweenBlocks()
1627 MachineInstr *NI = BuildMI(*DestBB, DestBB->getFirstNonPHI(), DebugLoc(), in moveStageBetweenBlocks()
1631 BlockMIs[{DestBB, CanonicalMIs[MI]}] = NI; in moveStageBetweenBlocks()
1639 DestBB->insert(InsertPt, MI); in moveStageBetweenBlocks()
1641 BlockMIs[{DestBB, KernelMI}] = MI; in moveStageBetweenBlocks()
1645 for (MachineInstr &MI : DestBB->phis()) { in moveStageBetweenBlocks()
1660 InsertPt = DestBB->getFirstNonPHI(); in moveStageBetweenBlocks()
1665 DestBB->insert(InsertPt, NewMI); in moveStageBetweenBlocks()
1670 NewMI->getOperand(2).setMBB(*DestBB->pred_begin()); in moveStageBetweenBlocks()
[all …]
DCodeGenPrepare.cpp363 bool canMergeBlocks(const BasicBlock *BB, const BasicBlock *DestBB) const;
365 bool isMergingEmptyBlockProfitable(BasicBlock *BB, BasicBlock *DestBB,
626 BasicBlock *DestBB = BI->getSuccessor(0); in findDestBlockOfMergeableEmptyBlock() local
627 if (DestBB == BB) in findDestBlockOfMergeableEmptyBlock()
630 if (!canMergeBlocks(BB, DestBB)) in findDestBlockOfMergeableEmptyBlock()
631 DestBB = nullptr; in findDestBlockOfMergeableEmptyBlock()
633 return DestBB; in findDestBlockOfMergeableEmptyBlock()
662 BasicBlock *DestBB = findDestBlockOfMergeableEmptyBlock(BB); in eliminateMostlyEmptyBlocks() local
663 if (!DestBB || in eliminateMostlyEmptyBlocks()
664 !isMergingEmptyBlockProfitable(BB, DestBB, Preheaders.count(BB))) in eliminateMostlyEmptyBlocks()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/MSP430/
DMSP430BranchSelector.cpp128 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in expandBranches() local
133 BlockOffsets[DestBB->getNumber()] - BlockOffsets[MBB->getNumber()]; in expandBranches()
142 << printMBBReference(*DestBB) << ", Distance " in expandBranches()
161 if (Succ == DestBB) { in expandBranches()
204 MI = BuildMI(*MBB, MI, dl, TII->get(MSP430::Bi)).addMBB(DestBB); in expandBranches()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DCFGMST.h214 if (Ei->DestBB && Ei->DestBB->isLandingPad()) { in computeMinimumSpanningTree()
215 if (unionGroups(Ei->SrcBB, Ei->DestBB)) in computeMinimumSpanningTree()
228 if (unionGroups(Ei->SrcBB, Ei->DestBB)) in computeMinimumSpanningTree()
249 << getBBInfo(EI->DestBB).Index << EI->infoString() << "\n"; in dumpEdges()
DPGOInstrumentation.cpp483 const BasicBlock *DestBB; member
490 : SrcBB(Src), DestBB(Dest), Weight(W) {} in PGOEdge()
741 const BasicBlock *DestBB = E->DestBB; in getInstrumentBBs() local
743 BBInfo &DestInfo = getBBInfo(DestBB); in getInstrumentBBs()
757 BasicBlock *DestBB = const_cast<BasicBlock *>(E->DestBB); in getInstrBB() local
760 return DestBB; in getInstrBB()
761 if (DestBB == nullptr) in getInstrBB()
778 return canInstrument(DestBB); in getInstrBB()
780 unsigned SuccNum = GetSuccessorNumber(SrcBB, DestBB); in getInstrBB()
791 << " --> " << getBBInfo(DestBB).Index << "\n"); in getInstrBB()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMBasicBlockInfo.cpp94 MachineBasicBlock *DestBB, in isBBInRange() argument
98 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset; in isBBInRange()
100 LLVM_DEBUG(dbgs() << "Branch of destination " << printMBBReference(*DestBB) in isBBInRange()
DARMConstantIslandPass.cpp1605 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in fixupImmediateBr() local
1608 if (BBUtils->isBBInRange(MI, DestBB, Br.MaxDisp)) in fixupImmediateBr()
1650 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in fixupConditionalBr() local
1686 BMI->getOperand(0).setMBB(DestBB); in fixupConditionalBr()
1704 MBB->addSuccessor(DestBB); in fixupConditionalBr()
1705 std::next(MBB->getIterator())->removeSuccessor(DestBB); in fixupConditionalBr()
1711 LLVM_DEBUG(dbgs() << " Insert B to " << printMBBReference(*DestBB) in fixupConditionalBr()
1723 .addMBB(DestBB) in fixupConditionalBr()
1726 BuildMI(MBB, DebugLoc(), TII->get(Br.UncondBr)).addMBB(DestBB); in fixupConditionalBr()
1842 MachineBasicBlock *DestBB = Br.MI->getOperand(0).getMBB(); in optimizeThumb2Branches() local
[all …]
DARMBasicBlockInfo.h144 bool isBBInRange(MachineInstr *MI, MachineBasicBlock *DestBB,
DARMLowOverheadLoops.cpp691 MachineBasicBlock *DestBB = MI->getOperand(1).getMBB(); in RevertWhile() local
692 unsigned BrOpc = BBUtils->isBBInRange(MI, DestBB, 254) ? in RevertWhile()
746 MachineBasicBlock *DestBB = MI->getOperand(1).getMBB(); in RevertLoopEnd() local
747 unsigned BrOpc = BBUtils->isBBInRange(MI, DestBB, 254) ? in RevertLoopEnd()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsConstantIslandPass.cpp1460 (MachineInstr *MI,MachineBasicBlock *DestBB, unsigned MaxDisp) { in isBBInRange() argument
1463 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset; in isBBInRange()
1465 LLVM_DEBUG(dbgs() << "Branch of destination " << printMBBReference(*DestBB) in isBBInRange()
1487 MachineBasicBlock *DestBB = MI->getOperand(TargetOperand).getMBB(); in fixupImmediateBr() local
1490 if (isBBInRange(MI, DestBB, Br.MaxDisp)) in fixupImmediateBr()
1506 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in fixupUnconditionalBr() local
1509 if (isBBInRange(MI, DestBB, BimmX16MaxDisp)) { in fixupUnconditionalBr()
1525 DestBB->setAlignment(Align(4)); in fixupUnconditionalBr()
1546 MachineBasicBlock *DestBB = MI->getOperand(TargetOperand).getMBB(); in fixupConditionalBr() local
1552 if (isBBInRange(MI, DestBB, LongFormMaxOff)) { in fixupConditionalBr()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DGVNHoist.cpp955 BasicBlock *DestBB, bool MoveAccess) { in removeAndReplace() argument
960 MSSAUpdater->moveToPlace(NewMemAcc, DestBB, in removeAndReplace()
1014 BasicBlock *DestBB = HP.first; in hoist() local
1018 if (I->getParent() == DestBB) in hoist()
1030 assert(allOperandsAvailable(Repl, DestBB) && in hoist()
1041 if (!allOperandsAvailable(Repl, DestBB)) { in hoist()
1048 if (!makeGepOperandsAvailable(Repl, DestBB, InstructionsToHoist)) in hoist()
1053 Instruction *Last = DestBB->getTerminator(); in hoist()
1060 NR += removeAndReplace(InstructionsToHoist, Repl, DestBB, MoveAccess); in hoist()
DJumpThreading.cpp1592 BasicBlock *DestBB; in ProcessThreadableEdges() local
1594 DestBB = nullptr; in ProcessThreadableEdges()
1597 DestBB = BI->getSuccessor(cast<ConstantInt>(Val)->isZero()); in ProcessThreadableEdges()
1600 DestBB = SI->findCaseValue(cast<ConstantInt>(Val))->getCaseSuccessor(); in ProcessThreadableEdges()
1605 DestBB = cast<BlockAddress>(Val)->getBasicBlock(); in ProcessThreadableEdges()
1610 OnlyDest = DestBB; in ProcessThreadableEdges()
1613 if (OnlyDest != DestBB) in ProcessThreadableEdges()
1627 PredToDestList.push_back(std::make_pair(Pred, DestBB)); in ProcessThreadableEdges()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DSIInsertSkips.cpp323 MachineBasicBlock *DestBB = MI.getOperand(0).getMBB(); in skipMaskBranch() local
325 if (!shouldSkip(**SrcMBB.succ_begin(), *DestBB)) in skipMaskBranch()
332 .addMBB(DestBB); in skipMaskBranch()
DSILowerControlFlow.cpp306 MachineBasicBlock *DestBB = MI.getOperand(2).getMBB(); in emitElse() local
327 .addMBB(DestBB); in emitElse()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp1518 BasicBlock *DestBB = StoreBB->getTerminator()->getSuccessor(0); in mergeStoreIntoSuccessor() local
1519 if (!DestBB->hasNPredecessors(2)) in mergeStoreIntoSuccessor()
1523 pred_iterator PredIter = pred_begin(DestBB); in mergeStoreIntoSuccessor()
1530 if (StoreBB == DestBB || OtherBB == DestBB) in mergeStoreIntoSuccessor()
1600 MergedVal = InsertNewInstBefore(PN, DestBB->front()); in mergeStoreIntoSuccessor()
1605 BBI = DestBB->getFirstInsertionPt(); in mergeStoreIntoSuccessor()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/
DRISCVInstrInfo.cpp376 MachineBasicBlock &DestBB, in insertIndirectBranch() argument
403 .addMBB(&DestBB, RISCVII::MO_HI); in insertIndirectBranch()
406 .addMBB(&DestBB, RISCVII::MO_LO); in insertIndirectBranch()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DModuloSchedule.h334 void moveStageBetweenBlocks(MachineBasicBlock *DestBB,
DTargetInstrInfo.h678 MachineBasicBlock *DestBB,
681 return insertBranch(MBB, DestBB, nullptr, ArrayRef<MachineOperand>(), DL,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/AsmParser/
DLLParser.cpp5977 BasicBlock *DestBB; in ParseSwitch() local
5981 ParseTypeAndBasicBlock(DestBB, PFS)) in ParseSwitch()
5989 Table.push_back(std::make_pair(cast<ConstantInt>(Constant), DestBB)); in ParseSwitch()
6019 BasicBlock *DestBB; in ParseIndirectBr() local
6020 if (ParseTypeAndBasicBlock(DestBB, PFS)) in ParseIndirectBr()
6022 DestList.push_back(DestBB); in ParseIndirectBr()
6025 if (ParseTypeAndBasicBlock(DestBB, PFS)) in ParseIndirectBr()
6027 DestList.push_back(DestBB); in ParseIndirectBr()
6251 BasicBlock *DestBB; in ParseCatchSwitch() local
6252 if (ParseTypeAndBasicBlock(DestBB, PFS)) in ParseCatchSwitch()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroFrame.cpp809 static void updatePhiNodes(BasicBlock *DestBB, BasicBlock *OldPred, in updatePhiNodes() argument
813 for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) { in updatePhiNodes()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp4413 BasicBlock *DestBB = getBasicBlock(Record[CurIdx++]); in parseFunctionBody() local
4416 SI->addCase(*cvi, DestBB); in parseFunctionBody()
4437 BasicBlock *DestBB = getBasicBlock(Record[1+3+i*2]); in parseFunctionBody() local
4438 if (!CaseVal || !DestBB) { in parseFunctionBody()
4442 SI->addCase(CaseVal, DestBB); in parseFunctionBody()
4458 if (BasicBlock *DestBB = getBasicBlock(Record[2+i])) { in parseFunctionBody() local
4459 IBI->addDestination(DestBB); in parseFunctionBody()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DInstructions.cpp4060 void IndirectBrInst::addDestination(BasicBlock *DestBB) { in addDestination() argument
4067 getOperandList()[OpNo] = DestBB; in addDestination()

12