Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DBranchRelaxation.cpp153 assert(isBlockInRange(MI, *DestBB) || in INITIALIZE_PASS()
300 OrigBB->addSuccessor(DestBB); in splitBlockBeforeInstr()
568 BranchBB->addSuccessor(DestBB); in fixupUnconditionalBranch()
569 MBB->replaceSuccessor(DestBB, BranchBB); in fixupUnconditionalBranch()
610 NewBB->addSuccessor(DestBB); in fixupUnconditionalBranch()
612 DestBB = NewBB; in fixupUnconditionalBranch()
621 assert(!DestBB->isEntryBlock()); in fixupUnconditionalBranch()
626 assert(FT == DestBB); in fixupUnconditionalBranch()
633 RestoreBB->addSuccessor(DestBB); in fixupUnconditionalBranch()
645 DestBB->setIsBeginSection(false); in fixupUnconditionalBranch()
[all …]
H A DModuloSchedule.cpp1638 auto InsertPt = DestBB->getFirstNonPHI(); in moveStageBetweenBlocks()
1651 MachineInstr *NI = BuildMI(*DestBB, DestBB->getFirstNonPHI(), in moveStageBetweenBlocks()
1655 BlockMIs[{DestBB, CanonicalMIs[&MI]}] = NI; in moveStageBetweenBlocks()
1663 DestBB->insert(InsertPt, &MI); in moveStageBetweenBlocks()
1665 BlockMIs[{DestBB, KernelMI}] = &MI; in moveStageBetweenBlocks()
1669 for (MachineInstr &MI : DestBB->phis()) { in moveStageBetweenBlocks()
1684 InsertPt = DestBB->getFirstNonPHI(); in moveStageBetweenBlocks()
1689 DestBB->insert(InsertPt, NewMI); in moveStageBetweenBlocks()
1694 NewMI->getOperand(2).setMBB(*DestBB->pred_begin()); in moveStageBetweenBlocks()
1697 BlockMIs[{DestBB, CanonicalMIs[Phi]}] = NewMI; in moveStageBetweenBlocks()
[all …]
H A DCodeGenPrepare.cpp909 if (DestBB == BB) in findDestBlockOfMergeableEmptyBlock()
912 if (!canMergeBlocks(BB, DestBB)) in findDestBlockOfMergeableEmptyBlock()
913 DestBB = nullptr; in findDestBlockOfMergeableEmptyBlock()
915 return DestBB; in findDestBlockOfMergeableEmptyBlock()
949 if (!DestBB || in eliminateMostlyEmptyBlocks()
1008 if (!isa<PHINode>(DestBB->begin())) in isMergingEmptyBlockProfitable()
1060 if (UI->getParent() == DestBB) { in canMergeBlocks()
1140 if (SinglePred != DestBB) { in eliminateMostlyEmptyBlock()
1152 FreshBBs.erase(DestBB); in eliminateMostlyEmptyBlock()
1160 for (PHINode &PN : DestBB->phis()) { in eliminateMostlyEmptyBlock()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBreakCriticalEdges.cpp118 BasicBlock *DestBB = TI->getSuccessor(SuccNum); in SplitKnownCriticalEdge() local
122 if (DestBB->isEHPad()) return nullptr; in SplitKnownCriticalEdge()
145 for (BasicBlock *P : predecessors(DestBB)) { in SplitKnownCriticalEdge()
176 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); in SplitKnownCriticalEdge()
213 if (TI->getSuccessor(i) != DestBB) continue; in SplitKnownCriticalEdge()
229 DestBB, NewBB, {TIBB}, Options.MergeIdenticalEdges); in SplitKnownCriticalEdge()
247 if (!llvm::is_contained(successors(TIBB), DestBB)) in SplitKnownCriticalEdge()
261 if (Loop *DestLoop = LI->getLoopFor(DestBB)) { in SplitKnownCriticalEdge()
276 assert(DestLoop->getHeader() == DestBB && in SplitKnownCriticalEdge()
285 if (!TIL->contains(DestBB)) { in SplitKnownCriticalEdge()
[all …]
H A DLocal.cpp350 BasicBlock *DestBB = IBI->getDestination(i); in ConstantFoldTerminator() local
351 if (DTU && DestBB != TheOnlyDest) in ConstantFoldTerminator()
352 RemovedSuccessors.insert(DestBB); in ConstantFoldTerminator()
356 DestBB->removePredecessor(BB); in ConstantFoldTerminator()
776 BasicBlock *PredBB = DestBB->getSinglePredecessor(); in MergeBasicBlockIntoOnlyPred()
803 if (DestBB->hasAddressTaken()) { in MergeBasicBlockIntoOnlyPred()
804 BlockAddress *BA = BlockAddress::get(DestBB); in MergeBasicBlockIntoOnlyPred()
813 PredBB->replaceAllUsesWith(DestBB); in MergeBasicBlockIntoOnlyPred()
817 DestBB->splice(DestBB->begin(), PredBB); in MergeBasicBlockIntoOnlyPred()
823 DestBB->moveAfter(PredBB); in MergeBasicBlockIntoOnlyPred()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp56 BasicBlock *DestBB = I->getNormalDest(); in insertAfterInvokes() local
58 if (!DestBB->getSinglePredecessor()) { in insertAfterInvokes()
59 assert(I->getSuccessor(0) == DestBB && in insertAfterInvokes()
61 DestBB = SplitCriticalEdge(I, 0, CriticalEdgeSplittingOptions(DT)); in insertAfterInvokes()
67 insertRVCall(&*DestBB->getFirstInsertionPt(), I); in insertAfterInvokes()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/
H A DCFGMST.h103 if (!E->DestBB) in handleCoroSuspendEdge()
106 if (llvm::isPresplitCoroSuspendExitEdge(*E->SrcBB, *E->DestBB)) in handleCoroSuspendEdge()
236 if (Ei->DestBB && Ei->DestBB->isLandingPad()) { in computeMinimumSpanningTree()
237 if (unionGroups(Ei->SrcBB, Ei->DestBB)) in computeMinimumSpanningTree()
250 if (unionGroups(Ei->SrcBB, Ei->DestBB)) in computeMinimumSpanningTree()
272 << getBBInfo(EI->DestBB).Index << EI->infoString() << "\n"; in dumpEdges()
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMBasicBlockInfo.cpp93 MachineBasicBlock *DestBB, in isBBInRange() argument
97 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset; in isBBInRange()
99 LLVM_DEBUG(dbgs() << "Branch of destination " << printMBBReference(*DestBB) in isBBInRange()
H A DARMConstantIslandPass.cpp1707 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in fixupImmediateBr() local
1710 if (BBUtils->isBBInRange(MI, DestBB, Br.MaxDisp)) in fixupImmediateBr()
1751 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in fixupConditionalBr() local
1787 BMI->getOperand(0).setMBB(DestBB); in fixupConditionalBr()
1805 MBB->addSuccessor(DestBB); in fixupConditionalBr()
1824 .addMBB(DestBB) in fixupConditionalBr()
1915 if (BBUtils->isBBInRange(Br.MI, DestBB, MaxOffs)) { in optimizeThumb2Branches()
1980 !BBUtils->isBBInRange(Br.MI, DestBB, 4094)) in optimizeThumb2Branches()
1983 if (!DT->dominates(DestBB, MBB)) in optimizeThumb2Branches()
2016 DestBB = ExitBB; in optimizeThumb2Branches()
[all …]
H A DARMBasicBlockInfo.h144 bool isBBInRange(MachineInstr *MI, MachineBasicBlock *DestBB,
H A DARMLowOverheadLoops.cpp1429 MachineBasicBlock *DestBB = getWhileLoopStartTargetBB(*MI); in RevertWhile() local
1430 unsigned BrOpc = BBUtils->isBBInRange(MI, DestBB, 254) ? in RevertWhile()
1464 MachineBasicBlock *DestBB = MI->getOperand(1).getMBB(); in RevertLoopEnd() local
1465 unsigned BrOpc = BBUtils->isBBInRange(MI, DestBB, 254) ? in RevertLoopEnd()
1487 MachineBasicBlock *DestBB = MI->getOperand(2).getMBB(); in RevertLoopEndDec() local
1489 BBUtils->isBBInRange(MI, DestBB, 254) ? ARM::tBcc : ARM::t2Bcc; in RevertLoopEndDec()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPGOInstrumentation.cpp472 BasicBlock *DestBB; member
479 : SrcBB(Src), DestBB(Dest), Weight(W) {} in PGOEdge()
763 BasicBlock *DestBB = E->DestBB; in getInstrBB() local
766 return DestBB; in getInstrBB()
767 if (DestBB == nullptr) in getInstrBB()
784 return canInstrument(DestBB); in getInstrBB()
1159 const BasicBlock *DestBB = E->DestBB; in setupBBInfoEdges() local
1222 const BasicBlock *DestBB = E->DestBB; in setInstrumentedCounts() local
1247 getBBInfo(E->DestBB).UnknownCountInEdge--; in setEdgeCount()
1580 const BasicBlock *DestBB = E->DestBB; in setBranchWeights() local
[all …]
H A DGCOVProfiling.cpp182 const BasicBlock *DestBB; member
191 : SrcBB(Src), DestBB(Dest), Weight(W) {} in Edge()
712 BasicBlock *DestBB = const_cast<BasicBlock *>(E.DestBB); in getInstrBB() local
715 return DestBB; in getInstrBB()
716 if (DestBB == nullptr) in getInstrBB()
733 return CanInstrument(DestBB); in getInstrBB()
737 const unsigned SuccNum = GetSuccessorNumber(SrcBB, DestBB); in getInstrBB()
744 MST.addEdge(InstrBB, DestBB, 0).InMST = true; in getInstrBB()
755 GCOVBlock &Dst = E.DestBB ? GF.getBlock(E.DestBB) : GF.getReturnBlock(); in dumpEdges()
852 E.DestBB ? Func.getBlock(E.DestBB) : Func.getReturnBlock(); in emitProfileNotes()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyMachineFunctionInfo.cpp143 auto *DestBB = KV.second.get<MachineBasicBlock *>(); in WebAssemblyFunctionInfo() local
144 if (MBBs.count(SrcBB) && MBBs.count(DestBB)) in WebAssemblyFunctionInfo()
145 SrcToUnwindDest[SrcBB->getNumber()] = DestBB->getNumber(); in WebAssemblyFunctionInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsConstantIslandPass.cpp1453 (MachineInstr *MI,MachineBasicBlock *DestBB, unsigned MaxDisp) { in isBBInRange() argument
1456 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset; in isBBInRange()
1480 MachineBasicBlock *DestBB = MI->getOperand(TargetOperand).getMBB(); in fixupImmediateBr() local
1483 if (isBBInRange(MI, DestBB, Br.MaxDisp)) in fixupImmediateBr()
1499 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in fixupUnconditionalBr() local
1502 if (isBBInRange(MI, DestBB, BimmX16MaxDisp)) { in fixupUnconditionalBr()
1518 DestBB->setAlignment(Align(4)); in fixupUnconditionalBr()
1539 MachineBasicBlock *DestBB = MI->getOperand(TargetOperand).getMBB(); in fixupConditionalBr() local
1545 if (isBBInRange(MI, DestBB, LongFormMaxOff)) { in fixupConditionalBr()
1586 BMI->getOperand(BMITargetOperand).setMBB(DestBB); in fixupConditionalBr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYConstantIslandPass.cpp1212 MachineBasicBlock *DestBB, in isBBInRange() argument
1215 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset; in isBBInRange()
1217 LLVM_DEBUG(dbgs() << "Branch of destination " << printMBBReference(*DestBB) in isBBInRange()
1238 MachineBasicBlock *DestBB = TII->getBranchDestBlock(*MI); in fixupImmediateBr() local
1241 if (isBBInRange(MI, DestBB, Br.MaxDisp)) in fixupImmediateBr()
1277 MachineBasicBlock *DestBB = TII->getBranchDestBlock(*MI); in fixupConditionalBr() local
1315 BMI->getOperand(BMI->getNumExplicitOperands() - 1).setMBB(DestBB); in fixupConditionalBr()
1335 MBB->addSuccessor(DestBB); in fixupConditionalBr()
1336 std::next(MBB->getIterator())->removeSuccessor(DestBB); in fixupConditionalBr()
1340 LLVM_DEBUG(dbgs() << " Insert B to " << printMBBReference(*DestBB) in fixupConditionalBr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DGCNPreRALongBranchReg.cpp128 MachineBasicBlock *DestBB = TII->getBranchDestBlock(*Last); in runOnMachineFunction() local
130 LongBranchFactor * BlockInfo[DestBB->getNumber()].Offset); in runOnMachineFunction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DGVNHoist.cpp504 BasicBlock *DestBB, bool MoveAccess);
1018 Instruction *Repl, BasicBlock *DestBB, in removeAndReplace() argument
1024 MSSAUpdater->moveToPlace(NewMemAcc, DestBB, MemorySSA::BeforeTerminator); in removeAndReplace()
1075 BasicBlock *DestBB = HP.first; in hoist() local
1079 if (I->getParent() == DestBB) in hoist()
1091 assert(allOperandsAvailable(Repl, DestBB) && in hoist()
1102 if (!allOperandsAvailable(Repl, DestBB)) { in hoist()
1109 if (!makeGepOperandsAvailable(Repl, DestBB, InstructionsToHoist)) in hoist()
1114 Instruction *Last = DestBB->getTerminator(); in hoist()
1123 NR += removeAndReplace(InstructionsToHoist, Repl, DestBB, MoveAccess); in hoist()
H A DJumpThreading.cpp1598 BasicBlock *DestBB; in processThreadableEdges() local
1600 DestBB = nullptr; in processThreadableEdges()
1603 DestBB = BI->getSuccessor(cast<ConstantInt>(Val)->isZero()); in processThreadableEdges()
1606 DestBB = SI->findCaseValue(cast<ConstantInt>(Val))->getCaseSuccessor(); in processThreadableEdges()
1611 DestBB = cast<BlockAddress>(Val)->getBasicBlock(); in processThreadableEdges()
1616 OnlyDest = DestBB; in processThreadableEdges()
1619 if (OnlyDest != DestBB) in processThreadableEdges()
1632 PredToDestList.emplace_back(Pred, DestBB); in processThreadableEdges()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp1495 BasicBlock *DestBB = StoreBB->getTerminator()->getSuccessor(0); in mergeStoreIntoSuccessor() local
1496 if (!DestBB->hasNPredecessors(2)) in mergeStoreIntoSuccessor()
1500 pred_iterator PredIter = pred_begin(DestBB); in mergeStoreIntoSuccessor()
1507 if (StoreBB == DestBB || OtherBB == DestBB) in mergeStoreIntoSuccessor()
1587 MergedVal = InsertNewInstBefore(PN, DestBB->begin()); in mergeStoreIntoSuccessor()
1592 BBI = DestBB->getFirstInsertionPt(); in mergeStoreIntoSuccessor()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchInstrInfo.cpp407 MachineBasicBlock &DestBB, in insertIndirectBranch() argument
432 .addMBB(&DestBB, LoongArchII::MO_PCREL_HI); in insertIndirectBranch()
438 .addMBB(&DestBB, LoongArchII::MO_PCREL_LO); in insertIndirectBranch()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DBasicBlockUtils.h196 BasicBlock *SplitBB, BasicBlock *DestBB);
261 void updatePhiNodes(BasicBlock *DestBB, BasicBlock *OldPred,
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DModuloSchedule.h343 void moveStageBetweenBlocks(MachineBasicBlock *DestBB,
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp6761 BasicBlock *DestBB; in parseSwitch() local
6803 BasicBlock *DestBB; in parseIndirectBr() local
6806 DestList.push_back(DestBB); in parseIndirectBr()
6811 DestList.push_back(DestBB); in parseIndirectBr()
7044 BasicBlock *DestBB; in parseCatchSwitch() local
7047 Table.push_back(DestBB); in parseCatchSwitch()
7067 for (BasicBlock *DestBB : Table) in parseCatchSwitch()
7068 CatchSwitch->addHandler(DestBB); in parseCatchSwitch()
7175 BasicBlock *DestBB; in parseCallBr() local
7178 IndirectDests.push_back(DestBB); in parseCallBr()
[all …]

12