Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Utils/
DBreakCriticalEdges.cpp127 BasicBlock *DestBB) { in CreatePHIsForSplitLoopExit() argument
133 for (BasicBlock::iterator I = DestBB->begin(); in CreatePHIsForSplitLoopExit()
177 BasicBlock *DestBB = TI->getSuccessor(SuccNum); in SplitCriticalEdge() local
181 TIBB->getName() + "." + DestBB->getName() + "_crit_edge"); in SplitCriticalEdge()
183 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); in SplitCriticalEdge()
198 for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) { in SplitCriticalEdge()
220 if (TI->getSuccessor(i) != DestBB) continue; in SplitCriticalEdge()
223 DestBB->removePredecessor(TIBB); in SplitCriticalEdge()
252 if (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { in SplitCriticalEdge()
257 for (pred_iterator I = pred_begin(DestBB), E = pred_end(DestBB); in SplitCriticalEdge()
[all …]
DLocal.cpp417 void llvm::MergeBasicBlockIntoOnlyPred(BasicBlock *DestBB, Pass *P) { in MergeBasicBlockIntoOnlyPred() argument
419 while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { in MergeBasicBlockIntoOnlyPred()
427 BasicBlock *PredBB = DestBB->getSinglePredecessor(); in MergeBasicBlockIntoOnlyPred()
432 if (DestBB->hasAddressTaken()) { in MergeBasicBlockIntoOnlyPred()
433 BlockAddress *BA = BlockAddress::get(DestBB); in MergeBasicBlockIntoOnlyPred()
442 PredBB->replaceAllUsesWith(DestBB); in MergeBasicBlockIntoOnlyPred()
446 DestBB->getInstList().splice(DestBB->begin(), PredBB->getInstList()); in MergeBasicBlockIntoOnlyPred()
452 DT->changeImmediateDominator(DestBB, PredBBIDom); in MergeBasicBlockIntoOnlyPred()
457 PI->replaceAllUses(PredBB, DestBB); in MergeBasicBlockIntoOnlyPred()
458 PI->removeEdge(ProfileInfo::getEdge(PredBB, DestBB)); in MergeBasicBlockIntoOnlyPred()
/external/llvm/lib/Transforms/Scalar/
DCodeGenPrepare.cpp103 bool CanMergeBlocks(const BasicBlock *BB, const BasicBlock *DestBB) const;
194 BasicBlock *DestBB = BI->getSuccessor(0); in EliminateMostlyEmptyBlocks() local
195 if (DestBB == BB) in EliminateMostlyEmptyBlocks()
198 if (!CanMergeBlocks(BB, DestBB)) in EliminateMostlyEmptyBlocks()
211 const BasicBlock *DestBB) const { in CanMergeBlocks()
220 if (User->getParent() != DestBB || !isa<PHINode>(User)) in CanMergeBlocks()
225 if (User->getParent() == DestBB) { in CanMergeBlocks()
240 const PHINode *DestBBPN = dyn_cast<PHINode>(DestBB->begin()); in CanMergeBlocks()
257 BBI = DestBB->begin(); in CanMergeBlocks()
281 BasicBlock *DestBB = BI->getSuccessor(0); in EliminateMostlyEmptyBlock() local
[all …]
DJumpThreading.cpp1080 BasicBlock *DestBB; in ProcessThreadableEdges() local
1082 DestBB = 0; in ProcessThreadableEdges()
1084 DestBB = BI->getSuccessor(cast<ConstantInt>(Val)->isZero()); in ProcessThreadableEdges()
1086 DestBB = SI->getSuccessor(SI->findCaseValue(cast<ConstantInt>(Val))); in ProcessThreadableEdges()
1090 DestBB = cast<BlockAddress>(Val)->getBasicBlock(); in ProcessThreadableEdges()
1095 OnlyDest = DestBB; in ProcessThreadableEdges()
1096 else if (OnlyDest != DestBB) in ProcessThreadableEdges()
1099 PredToDestList.push_back(std::make_pair(Pred, DestBB)); in ProcessThreadableEdges()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp506 BasicBlock *DestBB = StoreBB->getTerminator()->getSuccessor(0); in SimplifyStoreAtEndOfBlock() local
510 pred_iterator PI = pred_begin(DestBB); in SimplifyStoreAtEndOfBlock()
517 if (++PI == pred_end(DestBB)) in SimplifyStoreAtEndOfBlock()
526 if (++PI != pred_end(DestBB)) in SimplifyStoreAtEndOfBlock()
531 if (StoreBB == DestBB || OtherBB == DestBB) in SimplifyStoreAtEndOfBlock()
599 MergedVal = InsertNewInstBefore(PN, DestBB->front()); in SimplifyStoreAtEndOfBlock()
604 BBI = DestBB->getFirstNonPHI(); in SimplifyStoreAtEndOfBlock()
/external/llvm/lib/Target/ARM/
DARMConstantIslandPass.cpp1381 bool ARMConstantIslands::BBIsInRange(MachineInstr *MI,MachineBasicBlock *DestBB, in BBIsInRange() argument
1385 unsigned DestOffset = BBOffsets[DestBB->getNumber()]; in BBIsInRange()
1387 DEBUG(errs() << "Branch of destination BB#" << DestBB->getNumber() in BBIsInRange()
1408 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in FixUpImmediateBr() local
1411 if (BBIsInRange(MI, DestBB, Br.MaxDisp)) in FixUpImmediateBr()
1451 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in FixUpConditionalBr() local
1486 BMI->getOperand(0).setMBB(DestBB); in FixUpConditionalBr()
1507 DEBUG(errs() << " Insert B to BB#" << DestBB->getNumber() in FixUpConditionalBr()
1517 BuildMI(MBB, DebugLoc(), TII->get(Br.UncondBr)).addMBB(DestBB); in FixUpConditionalBr()
1628 MachineBasicBlock *DestBB = Br.MI->getOperand(0).getMBB(); in OptimizeThumb2Branches() local
[all …]
/external/llvm/lib/Analysis/
DProfileInfo.cpp317 replaceAllUses(const BasicBlock *RmBB, const BasicBlock *DestBB) { in replaceAllUses() argument
319 << " with " << DestBB->getName() << "\n"); in replaceAllUses()
320 const Function *F = DestBB->getParent(); in replaceAllUses()
332 if (e.second == DestBB) { in replaceAllUses()
335 newedge = getEdge(DestBB, e.second); in replaceAllUses()
340 if (e.first == DestBB) { in replaceAllUses()
343 newedge = getEdge(e.first, DestBB); in replaceAllUses()
352 Edge newedge = getEdge(DestBB, DestBB); in replaceAllUses()
/external/llvm/include/llvm/Analysis/
DProfileInfo.h166 void replaceAllUses(const BType *RmBB, const BType *DestBB);
/external/llvm/lib/AsmParser/
DLLParser.cpp3072 BasicBlock *DestBB; in ParseSwitch() local
3076 ParseTypeAndBasicBlock(DestBB, PFS)) in ParseSwitch()
3084 Table.push_back(std::make_pair(cast<ConstantInt>(Constant), DestBB)); in ParseSwitch()
3114 BasicBlock *DestBB; in ParseIndirectBr() local
3115 if (ParseTypeAndBasicBlock(DestBB, PFS)) in ParseIndirectBr()
3117 DestList.push_back(DestBB); in ParseIndirectBr()
3120 if (ParseTypeAndBasicBlock(DestBB, PFS)) in ParseIndirectBr()
3122 DestList.push_back(DestBB); in ParseIndirectBr()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp2395 BasicBlock *DestBB = getBasicBlock(Record[1+3+i*2]); in ParseFunctionBody() local
2396 if (CaseVal == 0 || DestBB == 0) { in ParseFunctionBody()
2400 SI->addCase(CaseVal, DestBB); in ParseFunctionBody()
2416 if (BasicBlock *DestBB = getBasicBlock(Record[2+i])) { in ParseFunctionBody() local
2417 IBI->addDestination(DestBB); in ParseFunctionBody()
/external/llvm/lib/VMCore/
DInstructions.cpp2994 void IndirectBrInst::addDestination(BasicBlock *DestBB) { in addDestination() argument
3001 OperandList[OpNo] = DestBB; in addDestination()