Searched refs:DestBB (Results 1 - 14 of 14) sorted by relevance

/freebsd-11.0-release/contrib/llvm/lib/Transforms/Utils/
H A DBreakCriticalEdges.cpp82 /// is the new loop exit block, and DestBB is the old loop exit, now the
86 BasicBlock *DestBB) {
92 for (BasicBlock::iterator I = DestBB->begin();
141 BasicBlock *DestBB = TI->getSuccessor(SuccNum); local
145 if (DestBB->isEHPad()) return nullptr;
149 TIBB->getName() + "." + DestBB->getName() + "_crit_edge");
151 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB);
162 // If there are any PHI nodes in DestBB, we need to update them so that they
166 for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) {
183 // If there are any other edges from TIBB to DestBB, updat
84 createPHIsForSplitLoopExit(ArrayRef<BasicBlock *> Preds, BasicBlock *SplitBB, BasicBlock *DestBB) argument
[all...]
H A DLocal.cpp549 /// MergeBasicBlockIntoOnlyPred - DestBB is a block with one predecessor and its
550 /// predecessor is known to have one successor (DestBB!). Eliminate the edge
551 /// between them, moving the instructions in the predecessor into DestBB and
554 void llvm::MergeBasicBlockIntoOnlyPred(BasicBlock *DestBB, DominatorTree *DT) { argument
556 while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) {
564 BasicBlock *PredBB = DestBB->getSinglePredecessor();
567 // Zap anything that took the address of DestBB. Not doing this will give the
569 if (DestBB->hasAddressTaken()) {
570 BlockAddress *BA = BlockAddress::get(DestBB);
578 // Anything that branched to PredBB now branches to DestBB
[all...]
/freebsd-11.0-release/contrib/llvm/lib/Transforms/Instrumentation/
H A DPGOInstrumentation.cpp172 // So there might be multiple edges with same SrcBB and DestBB.
174 const BasicBlock *DestBB; member in struct:__anon3158::PGOEdge
180 : SrcBB(Src), DestBB(Dest), Weight(W), InMST(false), Removed(false),
280 BasicBlock *DestBB = const_cast<BasicBlock *>(E->DestBB); local
283 return DestBB;
284 if (DestBB == nullptr)
288 // otherwise, the DestBB if this is not a critical edge.
293 return DestBB;
299 << getBBInfo(DestBB)
482 BasicBlock *DestBB = const_cast<BasicBlock *>(E->DestBB); local
557 const BasicBlock *DestBB = E->DestBB; local
644 const BasicBlock *DestBB = E->DestBB; local
[all...]
H A DCFGMST.h150 if (Ei->DestBB && Ei->DestBB->isLandingPad()) {
151 if (unionGroups(Ei->SrcBB, Ei->DestBB))
160 if (unionGroups(Ei->SrcBB, Ei->DestBB))
181 << getBBInfo(EI->DestBB).Index << EI->infoString() << "\n";
/freebsd-11.0-release/contrib/llvm/lib/Target/AArch64/
H A DAArch64BranchRelaxation.cpp266 MachineBasicBlock *DestBB,
270 unsigned DestOffset = BlockInfo[DestBB->getNumber()].Offset;
272 DEBUG(dbgs() << "Branch of destination BB#" << DestBB->getNumber()
365 MachineBasicBlock *DestBB = getDestBlock(MI); local
398 BMI->getOperand(0).setMBB(DestBB);
435 DEBUG(dbgs() << " Insert B to BB#" << DestBB->getNumber()
450 BuildMI(MBB, DebugLoc(), TII->get(AArch64::B)).addMBB(DestBB);
265 isBlockInRange(MachineInstr *MI, MachineBasicBlock *DestBB, unsigned Bits) argument
/freebsd-11.0-release/contrib/llvm/lib/Target/Mips/
H A DMipsConstantIslandPass.cpp1493 (MachineInstr *MI,MachineBasicBlock *DestBB, unsigned MaxDisp) {
1498 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset;
1500 DEBUG(dbgs() << "Branch of destination BB#" << DestBB->getNumber()
1522 MachineBasicBlock *DestBB = MI->getOperand(TargetOperand).getMBB(); local
1524 // Check to see if the DestBB is already in-range.
1525 if (isBBInRange(MI, DestBB, Br.MaxDisp))
1541 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); local
1544 if (isBBInRange(MI, DestBB, BimmX16MaxDisp)) {
1560 DestBB->setAlignment(2);
1582 MachineBasicBlock *DestBB local
1492 isBBInRange(MachineInstr *MI,MachineBasicBlock *DestBB, unsigned MaxDisp) argument
[all...]
/freebsd-11.0-release/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp1155 BasicBlock *DestBB = StoreBB->getTerminator()->getSuccessor(0); local
1159 pred_iterator PI = pred_begin(DestBB);
1166 if (++PI == pred_end(DestBB))
1175 if (++PI != pred_end(DestBB))
1180 if (StoreBB == DestBB || OtherBB == DestBB)
1248 MergedVal = InsertNewInstBefore(PN, DestBB->front());
1253 BBI = DestBB->getFirstInsertionPt();
/freebsd-11.0-release/contrib/llvm/lib/CodeGen/
H A DShrinkWrap.cpp388 /// Check whether the edge (\p SrcBB, \p DestBB) is a backedge according to MLI.
389 /// I.e., check if it exists a loop that contains SrcBB and where DestBB is the
393 const MachineBasicBlock *DestBB) {
396 if (Loop->getHeader() == DestBB)
391 isProperBackedge(const MachineLoopInfo &MLI, const MachineBasicBlock *SrcBB, const MachineBasicBlock *DestBB) argument
H A DCodeGenPrepare.cpp169 bool canMergeBlocks(const BasicBlock *BB, const BasicBlock *DestBB) const;
387 BasicBlock *DestBB = BI->getSuccessor(0); local
388 if (DestBB == BB)
391 if (!canMergeBlocks(BB, DestBB))
400 /// Return true if we can merge BB into DestBB if there is a single
404 const BasicBlock *DestBB) const {
412 if (UI->getParent() != DestBB || !isa<PHINode>(UI))
414 // If User is inside DestBB block and it is a PHINode then check
417 if (UI->getParent() == DestBB) {
429 // If BB and DestBB contai
473 BasicBlock *DestBB = BI->getSuccessor(0); local
475 DEBUG(dbgs() << "MERGING MOSTLY EMPTY BLOCKS - BEFORE:\\n" << *BB << *DestBB); local
[all...]
/freebsd-11.0-release/contrib/llvm/lib/Target/ARM/
H A DARMConstantIslandPass.cpp1616 bool ARMConstantIslands::isBBInRange(MachineInstr *MI,MachineBasicBlock *DestBB, argument
1620 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset;
1622 DEBUG(dbgs() << "Branch of destination BB#" << DestBB->getNumber()
1643 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); local
1645 // Check to see if the DestBB is already in-range.
1646 if (isBBInRange(MI, DestBB, Br.MaxDisp))
1684 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); local
1719 BMI->getOperand(0).setMBB(DestBB);
1738 DEBUG(dbgs() << " Insert B to BB#" << DestBB->getNumber()
1749 BuildMI(MBB, DebugLoc(), TII->get(Br.UncondBr)).addMBB(DestBB)
1890 MachineBasicBlock *DestBB = Br.MI->getOperand(0).getMBB(); local
1920 MachineBasicBlock *DestBB = Br.MI->getOperand(0).getMBB(); local
[all...]
/freebsd-11.0-release/contrib/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp1218 BasicBlock *DestBB; local
1220 DestBB = nullptr;
1222 DestBB = BI->getSuccessor(cast<ConstantInt>(Val)->isZero());
1224 DestBB = SI->findCaseValue(cast<ConstantInt>(Val)).getCaseSuccessor();
1228 DestBB = cast<BlockAddress>(Val)->getBasicBlock();
1233 OnlyDest = DestBB;
1234 else if (OnlyDest != DestBB)
1237 PredToDestList.push_back(std::make_pair(Pred, DestBB));
/freebsd-11.0-release/contrib/llvm/lib/AsmParser/
H A DLLParser.cpp4956 BasicBlock *DestBB;
4960 ParseTypeAndBasicBlock(DestBB, PFS))
4968 Table.push_back(std::make_pair(cast<ConstantInt>(Constant), DestBB));
4998 BasicBlock *DestBB;
4999 if (ParseTypeAndBasicBlock(DestBB, PFS))
5001 DestList.push_back(DestBB);
5004 if (ParseTypeAndBasicBlock(DestBB, PFS))
5006 DestList.push_back(DestBB);
5241 BasicBlock *DestBB;
5242 if (ParseTypeAndBasicBlock(DestBB, PF
[all...]
/freebsd-11.0-release/contrib/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp4605 BasicBlock *DestBB = getBasicBlock(Record[CurIdx++]); local
4608 SI->addCase(*cvi, DestBB);
4629 BasicBlock *DestBB = getBasicBlock(Record[1+3+i*2]); local
4630 if (!CaseVal || !DestBB) {
4634 SI->addCase(CaseVal, DestBB);
4650 if (BasicBlock *DestBB = getBasicBlock(Record[2+i])) {
4651 IBI->addDestination(DestBB);
/freebsd-11.0-release/contrib/llvm/lib/IR/
H A DInstructions.cpp3741 void IndirectBrInst::addDestination(BasicBlock *DestBB) {
3748 getOperandList()[OpNo] = DestBB;

Completed in 133 milliseconds