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

/macosx-10.10.1/llvmCore-3425.0.34/lib/Transforms/Utils/
H A DBreakCriticalEdges.cpp123 /// is the new loop exit block, and DestBB is the old loop exit, now the
127 BasicBlock *DestBB) {
133 for (BasicBlock::iterator I = DestBB->begin();
184 BasicBlock *DestBB = TI->getSuccessor(SuccNum); local
188 if (DestBB->isLandingPad()) return 0;
192 TIBB->getName() + "." + DestBB->getName() + "_crit_edge");
194 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB);
205 // If there are any PHI nodes in DestBB, we need to update them so that they
209 for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) {
226 // If there are any other edges from TIBB to DestBB, updat
125 createPHIsForSplitLoopExit(ArrayRef<BasicBlock *> Preds, BasicBlock *SplitBB, BasicBlock *DestBB) argument
[all...]
H A DLocal.cpp474 /// MergeBasicBlockIntoOnlyPred - DestBB is a block with one predecessor and its
475 /// predecessor is known to have one successor (DestBB!). Eliminate the edge
476 /// between them, moving the instructions in the predecessor into DestBB and
479 void llvm::MergeBasicBlockIntoOnlyPred(BasicBlock *DestBB, Pass *P) { argument
481 while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) {
489 BasicBlock *PredBB = DestBB->getSinglePredecessor();
492 // Zap anything that took the address of DestBB. Not doing this will give the
494 if (DestBB->hasAddressTaken()) {
495 BlockAddress *BA = BlockAddress::get(DestBB);
503 // Anything that branched to PredBB now branches to DestBB
[all...]
/macosx-10.10.1/llvmCore-3425.0.34/lib/Transforms/Scalar/
H A DCodeGenPrepare.cpp120 bool CanMergeBlocks(const BasicBlock *BB, const BasicBlock *DestBB) const;
368 BasicBlock *DestBB = BI->getSuccessor(0); local
369 if (DestBB == BB)
372 if (!CanMergeBlocks(BB, DestBB))
381 /// CanMergeBlocks - Return true if we can merge BB into DestBB if there is a
385 const BasicBlock *DestBB) const {
394 if (User->getParent() != DestBB || !isa<PHINode>(User))
396 // If User is inside DestBB block and it is a PHINode then check
399 if (User->getParent() == DestBB) {
411 // If BB and DestBB contai
455 BasicBlock *DestBB = BI->getSuccessor(0); local
457 DEBUG(dbgs() << "MERGING MOSTLY EMPTY BLOCKS - BEFORE:\\n" << *BB << *DestBB); local
[all...]
H A DJumpThreading.cpp1097 BasicBlock *DestBB; local
1099 DestBB = 0;
1101 DestBB = BI->getSuccessor(cast<ConstantInt>(Val)->isZero());
1103 DestBB = SI->findCaseValue(cast<ConstantInt>(Val)).getCaseSuccessor();
1107 DestBB = cast<BlockAddress>(Val)->getBasicBlock();
1112 OnlyDest = DestBB;
1113 else if (OnlyDest != DestBB)
1116 PredToDestList.push_back(std::make_pair(Pred, DestBB));
/macosx-10.10.1/llvmCore-3425.0.34/lib/Target/ARM/
H A DARMConstantIslandPass.cpp1504 bool ARMConstantIslands::isBBInRange(MachineInstr *MI,MachineBasicBlock *DestBB, argument
1508 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset;
1510 DEBUG(dbgs() << "Branch of destination BB#" << DestBB->getNumber()
1531 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); local
1533 // Check to see if the DestBB is already in-range.
1534 if (isBBInRange(MI, DestBB, Br.MaxDisp))
1572 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); local
1607 BMI->getOperand(0).setMBB(DestBB);
1626 DEBUG(dbgs() << " Insert B to BB#" << DestBB->getNumber()
1637 BuildMI(MBB, DebugLoc(), TII->get(Br.UncondBr)).addMBB(DestBB)
1773 MachineBasicBlock *DestBB = Br.MI->getOperand(0).getMBB(); local
1803 MachineBasicBlock *DestBB = Br.MI->getOperand(0).getMBB(); local
[all...]
/macosx-10.10.1/llvmCore-3425.0.34/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp715 BasicBlock *DestBB = StoreBB->getTerminator()->getSuccessor(0); local
719 pred_iterator PI = pred_begin(DestBB);
726 if (++PI == pred_end(DestBB))
735 if (++PI != pred_end(DestBB))
740 if (StoreBB == DestBB || OtherBB == DestBB)
808 MergedVal = InsertNewInstBefore(PN, DestBB->front());
813 BBI = DestBB->getFirstInsertionPt();
/macosx-10.10.1/llvmCore-3425.0.34/lib/Analysis/
H A DProfileInfo.cpp312 /// Replaces all occurrences of RmBB in the ProfilingInfo with DestBB.
314 /// occurrences of RmBB with DestBB.
317 replaceAllUses(const BasicBlock *RmBB, const BasicBlock *DestBB) { argument
319 << " with " << DestBB->getName() << "\n");
320 const Function *F = DestBB->getParent();
332 if (e.second == DestBB) {
335 newedge = getEdge(DestBB, e.second);
340 if (e.first == DestBB) {
343 newedge = getEdge(e.first, DestBB);
352 Edge newedge = getEdge(DestBB, DestB
[all...]
/macosx-10.10.1/llvmCore-3425.0.34/include/llvm/Analysis/
H A DProfileInfo.h165 void replaceAllUses(const BType *RmBB, const BType *DestBB);
/macosx-10.10.1/llvmCore-3425.0.34/lib/AsmParser/
H A DLLParser.cpp3182 BasicBlock *DestBB;
3186 ParseTypeAndBasicBlock(DestBB, PFS))
3194 Table.push_back(std::make_pair(cast<ConstantInt>(Constant), DestBB));
3224 BasicBlock *DestBB;
3225 if (ParseTypeAndBasicBlock(DestBB, PFS))
3227 DestList.push_back(DestBB);
3230 if (ParseTypeAndBasicBlock(DestBB, PFS))
3232 DestList.push_back(DestBB);
/macosx-10.10.1/llvmCore-3425.0.34/lib/Bitcode/Reader/
H A DBitcodeReader.cpp2318 BasicBlock *DestBB = getBasicBlock(Record[CurIdx++]); local
2320 SI->addCase(Case, DestBB);
2344 BasicBlock *DestBB = getBasicBlock(Record[1+3+i*2]); local
2345 if (CaseVal == 0 || DestBB == 0) {
2349 SI->addCase(CaseVal, DestBB);
2365 if (BasicBlock *DestBB = getBasicBlock(Record[2+i])) {
2366 IBI->addDestination(DestBB);
/macosx-10.10.1/llvmCore-3425.0.34/lib/VMCore/
H A DInstructions.cpp3325 void IndirectBrInst::addDestination(BasicBlock *DestBB) { argument
3332 OperandList[OpNo] = DestBB;

Completed in 167 milliseconds