Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DBreakCriticalEdges.cpp120 BasicBlock *DestBB = TI->getSuccessor(SuccNum); in SplitKnownCriticalEdge() local
124 if (DestBB->isEHPad()) return nullptr; in SplitKnownCriticalEdge()
127 isa<UnreachableInst>(DestBB->getFirstNonPHIOrDbgOrLifetime())) in SplitKnownCriticalEdge()
148 for (BasicBlock *P : predecessors(DestBB)) { in SplitKnownCriticalEdge()
179 DestBB->getName() + in SplitKnownCriticalEdge()
182 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); in SplitKnownCriticalEdge()
197 for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) { in SplitKnownCriticalEdge()
219 if (TI->getSuccessor(i) != DestBB) continue; in SplitKnownCriticalEdge()
222 DestBB->removePredecessor(TIBB, Options.KeepOneInputPHIs); in SplitKnownCriticalEdge()
235 DestBB, NewBB, {TIBB}, Options.MergeIdenticalEdges); in SplitKnownCriticalEdge()
[all …]
H A DLocal.cpp349 BasicBlock *DestBB = IBI->getDestination(i); in ConstantFoldTerminator() local
350 if (DTU && DestBB != TheOnlyDest) in ConstantFoldTerminator()
351 RemovedSuccessors.insert(DestBB); in ConstantFoldTerminator()
355 DestBB->removePredecessor(BB); in ConstantFoldTerminator()
726 void llvm::MergeBasicBlockIntoOnlyPred(BasicBlock *DestBB, in MergeBasicBlockIntoOnlyPred() argument
730 while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { in MergeBasicBlockIntoOnlyPred()
738 BasicBlock *PredBB = DestBB->getSinglePredecessor(); in MergeBasicBlockIntoOnlyPred()
754 Updates.push_back({DominatorTree::Insert, PredOfPredBB, DestBB}); in MergeBasicBlockIntoOnlyPred()
757 Updates.push_back({DominatorTree::Delete, PredBB, DestBB}); in MergeBasicBlockIntoOnlyPred()
762 if (DestBB->hasAddressTaken()) { in MergeBasicBlockIntoOnlyPred()
[all …]
H A DBasicBlockUtils.cpp544 void llvm::updatePhiNodes(BasicBlock *DestBB, BasicBlock *OldPred, in updatePhiNodes() argument
547 for (PHINode &PN : DestBB->phis()) { in updatePhiNodes()
715 BasicBlock *SplitBB, BasicBlock *DestBB) { in createPHIsForSplitLoopExit() argument
722 for (PHINode &PN : DestBB->phis()) { in createPHIsForSplitLoopExit()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DBranchRelaxation.cpp94 MachineBasicBlock *DestBB);
222 MachineBasicBlock *DestBB) { in splitBlockBeforeInstr() argument
244 OrigBB->addSuccessor(DestBB); in splitBlockBeforeInstr()
276 const MachineInstr &MI, const MachineBasicBlock &DestBB) const { in isBlockInRange()
278 int64_t DestOffset = BlockInfo[DestBB.getNumber()].Offset; in isBlockInRange()
284 << printMBBReference(DestBB) << " from " in isBlockInRange()
303 MachineBasicBlock *DestBB) { in fixupConditionalBranch() argument
306 TII->insertUnconditionalBranch(*MBB, DestBB, DL, &NewBrSize); in fixupConditionalBranch()
437 MachineBasicBlock *DestBB = TII->getBranchDestBlock(MI); in fixupUnconditionalBranch() local
439 int64_t DestOffset = BlockInfo[DestBB->getNumber()].Offset; in fixupUnconditionalBranch()
[all …]
H A DModuloSchedule.cpp1624 MachineBasicBlock *DestBB, MachineBasicBlock *SourceBB, unsigned Stage) { in moveStageBetweenBlocks() argument
1625 auto InsertPt = DestBB->getFirstNonPHI(); in moveStageBetweenBlocks()
1638 MachineInstr *NI = BuildMI(*DestBB, DestBB->getFirstNonPHI(), in moveStageBetweenBlocks()
1642 BlockMIs[{DestBB, CanonicalMIs[MI]}] = NI; in moveStageBetweenBlocks()
1650 DestBB->insert(InsertPt, MI); in moveStageBetweenBlocks()
1652 BlockMIs[{DestBB, KernelMI}] = MI; in moveStageBetweenBlocks()
1656 for (MachineInstr &MI : DestBB->phis()) { in moveStageBetweenBlocks()
1671 InsertPt = DestBB->getFirstNonPHI(); in moveStageBetweenBlocks()
1676 DestBB->insert(InsertPt, NewMI); in moveStageBetweenBlocks()
1681 NewMI->getOperand(2).setMBB(*DestBB->pred_begin()); in moveStageBetweenBlocks()
[all …]
H A DCodeGenPrepare.cpp385 bool canMergeBlocks(const BasicBlock *BB, const BasicBlock *DestBB) const;
387 bool isMergingEmptyBlockProfitable(BasicBlock *BB, BasicBlock *DestBB,
748 BasicBlock *DestBB = BI->getSuccessor(0); in findDestBlockOfMergeableEmptyBlock() local
749 if (DestBB == BB) in findDestBlockOfMergeableEmptyBlock()
752 if (!canMergeBlocks(BB, DestBB)) in findDestBlockOfMergeableEmptyBlock()
753 DestBB = nullptr; in findDestBlockOfMergeableEmptyBlock()
755 return DestBB; in findDestBlockOfMergeableEmptyBlock()
784 BasicBlock *DestBB = findDestBlockOfMergeableEmptyBlock(BB); in eliminateMostlyEmptyBlocks() local
785 if (!DestBB || in eliminateMostlyEmptyBlocks()
786 !isMergingEmptyBlockProfitable(BB, DestBB, Preheaders.count(BB))) in eliminateMostlyEmptyBlocks()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp78 BasicBlock *DestBB = I->getNormalDest(); in insertAfterInvokes() local
80 if (!DestBB->getSinglePredecessor()) { in insertAfterInvokes()
81 assert(I->getSuccessor(0) == DestBB && in insertAfterInvokes()
83 DestBB = SplitCriticalEdge(I, 0, CriticalEdgeSplittingOptions(DT)); in insertAfterInvokes()
89 insertRVCall(&*DestBB->getFirstInsertionPt(), I); in insertAfterInvokes()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/MSP430/
H A 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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DCFGMST.h221 if (Ei->DestBB && Ei->DestBB->isLandingPad()) { in computeMinimumSpanningTree()
222 if (unionGroups(Ei->SrcBB, Ei->DestBB)) in computeMinimumSpanningTree()
235 if (unionGroups(Ei->SrcBB, Ei->DestBB)) in computeMinimumSpanningTree()
256 << getBBInfo(EI->DestBB).Index << EI->infoString() << "\n"; in dumpEdges()
H A DPGOInstrumentation.cpp524 const BasicBlock *DestBB; member
531 : SrcBB(Src), DestBB(Dest), Weight(W) {} in PGOEdge()
797 const BasicBlock *DestBB = E->DestBB; in getInstrumentBBs() local
799 BBInfo &DestInfo = getBBInfo(DestBB); in getInstrumentBBs()
813 BasicBlock *DestBB = const_cast<BasicBlock *>(E->DestBB); in getInstrBB() local
816 return DestBB; in getInstrBB()
817 if (DestBB == nullptr) in getInstrBB()
834 return canInstrument(DestBB); in getInstrBB()
838 unsigned SuccNum = GetSuccessorNumber(SrcBB, DestBB); in getInstrBB()
850 << " --> " << getBBInfo(DestBB).Index << "\n"); in getInstrBB()
[all …]
H A DGCOVProfiling.cpp220 const BasicBlock *DestBB; member
229 : SrcBB(Src), DestBB(Dest), Weight(W) {} in Edge()
762 BasicBlock *DestBB = const_cast<BasicBlock *>(E.DestBB); in getInstrBB() local
765 return DestBB; in getInstrBB()
766 if (DestBB == nullptr) in getInstrBB()
783 return CanInstrument(DestBB); in getInstrBB()
787 const unsigned SuccNum = GetSuccessorNumber(SrcBB, DestBB); in getInstrBB()
794 MST.addEdge(InstrBB, DestBB, 0).InMST = true; in getInstrBB()
805 GCOVBlock &Dst = E.DestBB ? GF.getBlock(E.DestBB) : GF.getReturnBlock(); in dumpEdges()
897 E.DestBB ? Func.getBlock(E.DestBB) : Func.getReturnBlock(); in emitProfileNotes()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/
H A 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()
H A DARMConstantIslandPass.cpp1648 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in fixupImmediateBr() local
1651 if (BBUtils->isBBInRange(MI, DestBB, Br.MaxDisp)) in fixupImmediateBr()
1692 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in fixupConditionalBr() local
1728 BMI->getOperand(0).setMBB(DestBB); in fixupConditionalBr()
1746 MBB->addSuccessor(DestBB); in fixupConditionalBr()
1747 std::next(MBB->getIterator())->removeSuccessor(DestBB); in fixupConditionalBr()
1753 LLVM_DEBUG(dbgs() << " Insert B to " << printMBBReference(*DestBB) in fixupConditionalBr()
1765 .addMBB(DestBB) in fixupConditionalBr()
1768 BuildMI(MBB, DebugLoc(), TII->get(Br.UncondBr)).addMBB(DestBB); in fixupConditionalBr()
1856 MachineBasicBlock *DestBB = Br.MI->getOperand(0).getMBB(); in optimizeThumb2Branches() local
[all …]
H A DARMBasicBlockInfo.h144 bool isBBInRange(MachineInstr *MI, MachineBasicBlock *DestBB,
H A DARMLowOverheadLoops.cpp1293 MachineBasicBlock *DestBB = MI->getOperand(2).getMBB(); in RevertWhile() local
1294 unsigned BrOpc = BBUtils->isBBInRange(MI, DestBB, 254) ? in RevertWhile()
1328 MachineBasicBlock *DestBB = MI->getOperand(1).getMBB(); in RevertLoopEnd() local
1329 unsigned BrOpc = BBUtils->isBBInRange(MI, DestBB, 254) ? in RevertLoopEnd()
1351 MachineBasicBlock *DestBB = MI->getOperand(2).getMBB(); in RevertLoopEndDec() local
1353 BBUtils->isBBInRange(MI, DestBB, 254) ? ARM::tBcc : ARM::t2Bcc; in RevertLoopEndDec()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Mips/
H A DMipsConstantIslandPass.cpp1454 (MachineInstr *MI,MachineBasicBlock *DestBB, unsigned MaxDisp) { in isBBInRange() argument
1457 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset; in isBBInRange()
1459 LLVM_DEBUG(dbgs() << "Branch of destination " << printMBBReference(*DestBB) in isBBInRange()
1481 MachineBasicBlock *DestBB = MI->getOperand(TargetOperand).getMBB(); in fixupImmediateBr() local
1484 if (isBBInRange(MI, DestBB, Br.MaxDisp)) in fixupImmediateBr()
1500 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in fixupUnconditionalBr() local
1503 if (isBBInRange(MI, DestBB, BimmX16MaxDisp)) { in fixupUnconditionalBr()
1519 DestBB->setAlignment(Align(4)); in fixupUnconditionalBr()
1540 MachineBasicBlock *DestBB = MI->getOperand(TargetOperand).getMBB(); in fixupConditionalBr() local
1546 if (isBBInRange(MI, DestBB, LongFormMaxOff)) { in fixupConditionalBr()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
H A DWebAssemblyMachineFunctionInfo.cpp130 auto *DestBB = KV.second.get<MachineBasicBlock *>(); in WebAssemblyFunctionInfo() local
131 if (MBBs.count(SrcBB) && MBBs.count(DestBB)) in WebAssemblyFunctionInfo()
132 SrcToUnwindDest[SrcBB->getNumber()] = DestBB->getNumber(); in WebAssemblyFunctionInfo()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DGVNHoist.cpp505 BasicBlock *DestBB, bool MoveAccess);
1045 Instruction *Repl, BasicBlock *DestBB, in removeAndReplace() argument
1051 MSSAUpdater->moveToPlace(NewMemAcc, DestBB, MemorySSA::BeforeTerminator); in removeAndReplace()
1102 BasicBlock *DestBB = HP.first; in hoist() local
1106 if (I->getParent() == DestBB) in hoist()
1118 assert(allOperandsAvailable(Repl, DestBB) && in hoist()
1129 if (!allOperandsAvailable(Repl, DestBB)) { in hoist()
1136 if (!makeGepOperandsAvailable(Repl, DestBB, InstructionsToHoist)) in hoist()
1141 Instruction *Last = DestBB->getTerminator(); in hoist()
1148 NR += removeAndReplace(InstructionsToHoist, Repl, DestBB, MoveAccess); in hoist()
H A DJumpThreading.cpp1672 BasicBlock *DestBB; in processThreadableEdges() local
1674 DestBB = nullptr; in processThreadableEdges()
1677 DestBB = BI->getSuccessor(cast<ConstantInt>(Val)->isZero()); in processThreadableEdges()
1680 DestBB = SI->findCaseValue(cast<ConstantInt>(Val))->getCaseSuccessor(); in processThreadableEdges()
1685 DestBB = cast<BlockAddress>(Val)->getBasicBlock(); in processThreadableEdges()
1690 OnlyDest = DestBB; in processThreadableEdges()
1693 if (OnlyDest != DestBB) in processThreadableEdges()
1707 PredToDestList.emplace_back(Pred, DestBB); in processThreadableEdges()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp1465 BasicBlock *DestBB = StoreBB->getTerminator()->getSuccessor(0); in mergeStoreIntoSuccessor() local
1466 if (!DestBB->hasNPredecessors(2)) in mergeStoreIntoSuccessor()
1470 pred_iterator PredIter = pred_begin(DestBB); in mergeStoreIntoSuccessor()
1477 if (StoreBB == DestBB || OtherBB == DestBB) in mergeStoreIntoSuccessor()
1547 MergedVal = InsertNewInstBefore(PN, DestBB->front()); in mergeStoreIntoSuccessor()
1552 BBI = DestBB->getFirstInsertionPt(); in mergeStoreIntoSuccessor()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DBasicBlockUtils.h187 BasicBlock *SplitBB, BasicBlock *DestBB);
275 void updatePhiNodes(BasicBlock *DestBB, BasicBlock *OldPred,
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DModuloSchedule.h339 void moveStageBetweenBlocks(MachineBasicBlock *DestBB,
H A DTargetInstrInfo.h692 MachineBasicBlock *DestBB,
695 return insertBranch(MBB, DestBB, nullptr, ArrayRef<MachineOperand>(), DL,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/AsmParser/
H A DLLParser.cpp6474 BasicBlock *DestBB; in parseSwitch() local
6478 parseTypeAndBasicBlock(DestBB, PFS)) in parseSwitch()
6486 Table.push_back(std::make_pair(cast<ConstantInt>(Constant), DestBB)); in parseSwitch()
6516 BasicBlock *DestBB; in parseIndirectBr() local
6517 if (parseTypeAndBasicBlock(DestBB, PFS)) in parseIndirectBr()
6519 DestList.push_back(DestBB); in parseIndirectBr()
6522 if (parseTypeAndBasicBlock(DestBB, PFS)) in parseIndirectBr()
6524 DestList.push_back(DestBB); in parseIndirectBr()
6748 BasicBlock *DestBB; in parseCatchSwitch() local
6749 if (parseTypeAndBasicBlock(DestBB, PFS)) in parseCatchSwitch()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DSILowerControlFlow.cpp308 MachineBasicBlock *DestBB = MI.getOperand(2).getMBB(); in emitElse() local
332 .addMBB(DestBB); in emitElse()

12