Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DBranchRelaxation.cpp105 MachineBasicBlock *DestBB);
164 MachineBasicBlock *DestBB = TII->getBranchDestBlock(MI); in INITIALIZE_PASS() local
165 assert(isBlockInRange(MI, *DestBB) || in INITIALIZE_PASS()
166 RelaxedUnconditionals.contains({&MBB, DestBB})); in INITIALIZE_PASS()
291 MachineBasicBlock *DestBB) { in splitBlockBeforeInstr() argument
318 OrigBB->addSuccessor(DestBB); in splitBlockBeforeInstr()
350 const MachineBasicBlock &DestBB) const { in isBlockInRange()
352 int64_t DestOffset = BlockInfo[DestBB.getNumber()].Offset; in isBlockInRange()
357 SrcBB->getSectionID() != DestBB.getSectionID() in isBlockInRange()
363 << printMBBReference(DestBB) << " from " in isBlockInRange()
[all …]
H A DModuloSchedule.cpp1663 MachineBasicBlock *DestBB, MachineBasicBlock *SourceBB, unsigned Stage) { in moveStageBetweenBlocks() argument
1664 auto InsertPt = DestBB->getFirstNonPHI(); in moveStageBetweenBlocks()
1677 MachineInstr *NI = BuildMI(*DestBB, DestBB->getFirstNonPHI(), in moveStageBetweenBlocks()
1681 BlockMIs[{DestBB, CanonicalMIs[&MI]}] = NI; in moveStageBetweenBlocks()
1689 DestBB->insert(InsertPt, &MI); in moveStageBetweenBlocks()
1691 BlockMIs[{DestBB, KernelMI}] = &MI; in moveStageBetweenBlocks()
1695 for (MachineInstr &MI : DestBB->phis()) { in moveStageBetweenBlocks()
1711 InsertPt = DestBB->getFirstNonPHI(); in moveStageBetweenBlocks()
1716 DestBB->insert(InsertPt, NewMI); in moveStageBetweenBlocks()
1721 NewMI->getOperand(2).setMBB(*DestBB->pred_begin()); in moveStageBetweenBlocks()
[all …]
H A DCodeGenPrepare.cpp424 bool canMergeBlocks(const BasicBlock *BB, const BasicBlock *DestBB) const;
426 bool isMergingEmptyBlockProfitable(BasicBlock *BB, BasicBlock *DestBB,
904 BasicBlock *DestBB = BI->getSuccessor(0); in findDestBlockOfMergeableEmptyBlock() local
905 if (DestBB == BB) in findDestBlockOfMergeableEmptyBlock()
908 if (!canMergeBlocks(BB, DestBB)) in findDestBlockOfMergeableEmptyBlock()
909 DestBB = nullptr; in findDestBlockOfMergeableEmptyBlock()
911 return DestBB; in findDestBlockOfMergeableEmptyBlock()
944 BasicBlock *DestBB = findDestBlockOfMergeableEmptyBlock(BB); in eliminateMostlyEmptyBlocks() local
945 if (!DestBB || in eliminateMostlyEmptyBlocks()
946 !isMergingEmptyBlockProfitable(BB, DestBB, Preheaders.count(BB))) in eliminateMostlyEmptyBlocks()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBreakCriticalEdges.cpp115 BasicBlock *DestBB = TI->getSuccessor(SuccNum); in SplitKnownCriticalEdge() local
120 if (DestBB->isEHPad() || isa<IndirectBrInst>(TI)) in SplitKnownCriticalEdge()
124 isa<UnreachableInst>(DestBB->getFirstNonPHIOrDbgOrLifetime())) in SplitKnownCriticalEdge()
144 for (BasicBlock *P : predecessors(DestBB)) { in SplitKnownCriticalEdge()
172 DestBB->getName() + in SplitKnownCriticalEdge()
175 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); in SplitKnownCriticalEdge()
192 for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) { in SplitKnownCriticalEdge()
216 if (TI->getSuccessor(i) != DestBB) continue; in SplitKnownCriticalEdge()
219 DestBB->removePredecessor(TIBB, Options.KeepOneInputPHIs); in SplitKnownCriticalEdge()
235 DestBB, NewBB, {TIBB}, Options.MergeIdenticalEdges); in SplitKnownCriticalEdge()
[all …]
H A DLocal.cpp353 BasicBlock *DestBB = IBI->getDestination(i); in ConstantFoldTerminator() local
354 if (DTU && DestBB != TheOnlyDest) in ConstantFoldTerminator()
355 RemovedSuccessors.insert(DestBB); in ConstantFoldTerminator()
359 DestBB->removePredecessor(BB); in ConstantFoldTerminator()
770 void llvm::MergeBasicBlockIntoOnlyPred(BasicBlock *DestBB, in MergeBasicBlockIntoOnlyPred() argument
774 while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { in MergeBasicBlockIntoOnlyPred()
782 BasicBlock *PredBB = DestBB->getSinglePredecessor(); in MergeBasicBlockIntoOnlyPred()
799 Updates.push_back({DominatorTree::Insert, PredOfPredBB, DestBB}); in MergeBasicBlockIntoOnlyPred()
804 Updates.push_back({DominatorTree::Delete, PredBB, DestBB}); in MergeBasicBlockIntoOnlyPred()
809 if (DestBB->hasAddressTaken()) { in MergeBasicBlockIntoOnlyPred()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/
H A DCFGMST.h108 if (!E->DestBB) in handleCoroSuspendEdge()
111 if (llvm::isPresplitCoroSuspendExitEdge(*E->SrcBB, *E->DestBB)) in handleCoroSuspendEdge()
251 if (Ei->DestBB && Ei->DestBB->isLandingPad()) { in computeMinimumSpanningTree()
252 if (unionGroups(Ei->SrcBB, Ei->DestBB)) in computeMinimumSpanningTree()
265 if (unionGroups(Ei->SrcBB, Ei->DestBB)) in computeMinimumSpanningTree()
276 if (Ei->DestBB && LI->isLoopHeader(Ei->DestBB) && in validateLoopEntryInstrumentation()
277 !LI->getLoopFor(Ei->DestBB)->contains(Ei->SrcBB) && Ei->InMST) in validateLoopEntryInstrumentation()
300 << getBBInfo(EI->DestBB).Index << EI->infoString() << "\n"; in dumpEdges()
/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/lib/Target/MSP430/
H A DMSP430BranchSelector.cpp127 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in expandBranches() local
132 BlockOffsets[DestBB->getNumber()] - BlockOffsets[MBB->getNumber()]; in expandBranches()
141 << printMBBReference(*DestBB) << ", Distance " in expandBranches()
160 if (Succ == DestBB) { in expandBranches()
203 MI = BuildMI(*MBB, MI, dl, TII->get(MSP430::Bi)).addMBB(DestBB); in expandBranches()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonCopyHoisting.cpp56 void moveCopyInstr(MachineBasicBlock *DestBB,
237 void HexagonCopyHoisting::moveCopyInstr(MachineBasicBlock *DestBB, in moveCopyInstr() argument
240 MachineBasicBlock::iterator FirstTI = DestBB->getFirstTerminator(); in moveCopyInstr()
241 assert(FirstTI != DestBB->end()); in moveCopyInstr()
243 DestBB->splice(FirstTI, MI->getParent(), MI); in moveCopyInstr()
246 for (MachineBasicBlock *SuccBB : drop_begin(DestBB->successors())) { in moveCopyInstr()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMBasicBlockInfo.cpp91 MachineBasicBlock *DestBB, in isBBInRange() argument
95 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset; in isBBInRange()
97 LLVM_DEBUG(dbgs() << "Branch of destination " << printMBBReference(*DestBB) in isBBInRange()
H A DARMConstantIslandPass.cpp1688 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in fixupImmediateBr() local
1691 if (BBUtils->isBBInRange(MI, DestBB, Br.MaxDisp)) in fixupImmediateBr()
1732 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in fixupConditionalBr() local
1768 BMI->getOperand(0).setMBB(DestBB); in fixupConditionalBr()
1786 MBB->addSuccessor(DestBB); in fixupConditionalBr()
1787 std::next(MBB->getIterator())->removeSuccessor(DestBB); in fixupConditionalBr()
1793 LLVM_DEBUG(dbgs() << " Insert B to " << printMBBReference(*DestBB) in fixupConditionalBr()
1805 .addMBB(DestBB) in fixupConditionalBr()
1808 BuildMI(MBB, DebugLoc(), TII->get(Br.UncondBr)).addMBB(DestBB); in fixupConditionalBr()
1895 MachineBasicBlock *DestBB = Br.MI->getOperand(0).getMBB(); in optimizeThumb2Branches() local
[all …]
H A DARMBasicBlockInfo.h144 bool isBBInRange(MachineInstr *MI, MachineBasicBlock *DestBB,
H A DARMLowOverheadLoops.cpp1410 MachineBasicBlock *DestBB = getWhileLoopStartTargetBB(*MI); in RevertWhile() local
1411 unsigned BrOpc = BBUtils->isBBInRange(MI, DestBB, 254) ? in RevertWhile()
1445 MachineBasicBlock *DestBB = MI->getOperand(1).getMBB(); in RevertLoopEnd() local
1446 unsigned BrOpc = BBUtils->isBBInRange(MI, DestBB, 254) ? in RevertLoopEnd()
1468 MachineBasicBlock *DestBB = MI->getOperand(2).getMBB(); in RevertLoopEndDec() local
1470 BBUtils->isBBInRange(MI, DestBB, 254) ? ARM::tBcc : ARM::t2Bcc; in RevertLoopEndDec()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPGOInstrumentation.cpp556 BasicBlock *DestBB; member
563 : SrcBB(Src), DestBB(Dest), Weight(W) {} in PGOEdge()
850 BasicBlock *DestBB = E->DestBB; in getInstrBB() local
853 return DestBB; in getInstrBB()
854 if (DestBB == nullptr) in getInstrBB()
871 return canInstrument(DestBB); in getInstrBB()
875 unsigned SuccNum = GetSuccessorNumber(SrcBB, DestBB); in getInstrBB()
887 << " --> " << getBBInfo(DestBB).Index << "\n"); in getInstrBB()
891 Edge &NewEdge1 = MST.addEdge(InstrBB, DestBB, 0); in getInstrBB()
1294 const BasicBlock *DestBB = E->DestBB; in setupBBInfoEdges() local
[all …]
H A DGCOVProfiling.cpp186 const BasicBlock *DestBB; member
195 : SrcBB(Src), DestBB(Dest), Weight(W) {} in Edge()
690 BasicBlock *DestBB = const_cast<BasicBlock *>(E.DestBB); in getInstrBB() local
693 return DestBB; in getInstrBB()
694 if (DestBB == nullptr) in getInstrBB()
711 return CanInstrument(DestBB); in getInstrBB()
715 const unsigned SuccNum = GetSuccessorNumber(SrcBB, DestBB); in getInstrBB()
722 MST.addEdge(InstrBB, DestBB, 0).InMST = true; in getInstrBB()
733 GCOVBlock &Dst = E.DestBB ? GF.getBlock(E.DestBB) : GF.getReturnBlock(); in dumpEdges()
835 E.DestBB ? Func.getBlock(E.DestBB) : Func.getReturnBlock(); in emitProfileNotes()
[all …]
H A DIndirectCallPromotion.cpp216 static bool isDestBBSuitableForSink(Instruction *Inst, BasicBlock *DestBB) { in isDestBBSuitableForSink() argument
220 assert(BB != DestBB && BB->getTerminator()->getNumSuccessors() == 2 && in isDestBBSuitableForSink()
221 DestBB->getUniquePredecessor() == BB && in isDestBBSuitableForSink()
236 if (UserBB != DestBB) in isDestBBSuitableForSink()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsConstantIslandPass.cpp1451 (MachineInstr *MI,MachineBasicBlock *DestBB, unsigned MaxDisp) { in isBBInRange() argument
1454 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset; in isBBInRange()
1456 LLVM_DEBUG(dbgs() << "Branch of destination " << printMBBReference(*DestBB) in isBBInRange()
1478 MachineBasicBlock *DestBB = MI->getOperand(TargetOperand).getMBB(); in fixupImmediateBr() local
1481 if (isBBInRange(MI, DestBB, Br.MaxDisp)) in fixupImmediateBr()
1497 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in fixupUnconditionalBr() local
1500 if (isBBInRange(MI, DestBB, BimmX16MaxDisp)) { in fixupUnconditionalBr()
1516 DestBB->setAlignment(Align(4)); in fixupUnconditionalBr()
1537 MachineBasicBlock *DestBB = MI->getOperand(TargetOperand).getMBB(); in fixupConditionalBr() local
1543 if (isBBInRange(MI, DestBB, LongFormMaxOff)) { in fixupConditionalBr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYConstantIslandPass.cpp1206 MachineBasicBlock *DestBB, in isBBInRange() argument
1209 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset; in isBBInRange()
1211 LLVM_DEBUG(dbgs() << "Branch of destination " << printMBBReference(*DestBB) in isBBInRange()
1232 MachineBasicBlock *DestBB = TII->getBranchDestBlock(*MI); in fixupImmediateBr() local
1235 if (isBBInRange(MI, DestBB, Br.MaxDisp)) in fixupImmediateBr()
1271 MachineBasicBlock *DestBB = TII->getBranchDestBlock(*MI); in fixupConditionalBr() local
1309 BMI->getOperand(BMI->getNumExplicitOperands() - 1).setMBB(DestBB); in fixupConditionalBr()
1329 MBB->addSuccessor(DestBB); in fixupConditionalBr()
1330 std::next(MBB->getIterator())->removeSuccessor(DestBB); in fixupConditionalBr()
1334 LLVM_DEBUG(dbgs() << " Insert B to " << printMBBReference(*DestBB) in fixupConditionalBr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyMachineFunctionInfo.cpp144 auto *DestBB = cast<MachineBasicBlock *>(KV.second); in WebAssemblyFunctionInfo() local
145 if (MBBs.count(SrcBB) && MBBs.count(DestBB)) in WebAssemblyFunctionInfo()
146 SrcToUnwindDest[SrcBB->getNumber()] = DestBB->getNumber(); in WebAssemblyFunctionInfo()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DGVNHoist.cpp491 BasicBlock *DestBB, bool MoveAccess);
1012 Instruction *Repl, BasicBlock *DestBB, in removeAndReplace() argument
1018 MSSAUpdater->moveToPlace(NewMemAcc, DestBB, MemorySSA::BeforeTerminator); in removeAndReplace()
1069 BasicBlock *DestBB = HP.first; in hoist() local
1073 if (I->getParent() == DestBB) in hoist()
1085 assert(allOperandsAvailable(Repl, DestBB) && in hoist()
1096 if (!allOperandsAvailable(Repl, DestBB)) { in hoist()
1103 if (!makeGepOperandsAvailable(Repl, DestBB, InstructionsToHoist)) in hoist()
1108 Instruction *Last = DestBB->getTerminator(); in hoist()
1117 NR += removeAndReplace(InstructionsToHoist, Repl, DestBB, MoveAccess); in hoist()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DGCNPreRALongBranchReg.cpp141 MachineBasicBlock *DestBB = TII->getBranchDestBlock(*Last); in run() local
143 LongBranchFactor * BlockInfo[DestBB->getNumber()].Offset); in run()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp1527 BasicBlock *DestBB = StoreBB->getTerminator()->getSuccessor(0); in mergeStoreIntoSuccessor() local
1528 if (!DestBB->hasNPredecessors(2)) in mergeStoreIntoSuccessor()
1532 pred_iterator PredIter = pred_begin(DestBB); in mergeStoreIntoSuccessor()
1539 if (StoreBB == DestBB || OtherBB == DestBB) in mergeStoreIntoSuccessor()
1619 MergedVal = InsertNewInstBefore(PN, DestBB->begin()); in mergeStoreIntoSuccessor()
1624 BBI = DestBB->getFirstInsertionPt(); in mergeStoreIntoSuccessor()
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/
H A DXtensaInstrInfo.h99 void insertIndirectBranch(MachineBasicBlock &MBB, MachineBasicBlock &DestBB,
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DBasicBlockUtils.h201 BasicBlock *DestBB);
269 LLVM_ABI void updatePhiNodes(BasicBlock *DestBB, BasicBlock *OldPred,
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchInstrInfo.cpp618 MachineBasicBlock &DestBB, in insertIndirectBranch() argument
643 .addMBB(&DestBB, LoongArchII::MO_PCREL_HI); in insertIndirectBranch()
649 .addMBB(&DestBB, LoongArchII::MO_PCREL_LO); in insertIndirectBranch()

12