/external/llvm/lib/Transforms/Utils/ |
D | BreakCriticalEdges.cpp | 127 BasicBlock *DestBB) { in CreatePHIsForSplitLoopExit() argument 133 for (BasicBlock::iterator I = DestBB->begin(); in CreatePHIsForSplitLoopExit() 178 BasicBlock *DestBB = TI->getSuccessor(SuccNum); in SplitCriticalEdge() local 182 if (DestBB->isLandingPad()) return 0; in SplitCriticalEdge() 186 TIBB->getName() + "." + DestBB->getName() + "_crit_edge"); in SplitCriticalEdge() 188 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); in SplitCriticalEdge() 203 for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) { in SplitCriticalEdge() 225 if (TI->getSuccessor(i) != DestBB) continue; in SplitCriticalEdge() 228 DestBB->removePredecessor(TIBB, DontDeleteUselessPhis); in SplitCriticalEdge() 257 if (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { in SplitCriticalEdge() [all …]
|
D | Local.cpp | 434 void llvm::MergeBasicBlockIntoOnlyPred(BasicBlock *DestBB, Pass *P) { in MergeBasicBlockIntoOnlyPred() argument 436 while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { in MergeBasicBlockIntoOnlyPred() 444 BasicBlock *PredBB = DestBB->getSinglePredecessor(); in MergeBasicBlockIntoOnlyPred() 449 if (DestBB->hasAddressTaken()) { in MergeBasicBlockIntoOnlyPred() 450 BlockAddress *BA = BlockAddress::get(DestBB); in MergeBasicBlockIntoOnlyPred() 459 PredBB->replaceAllUsesWith(DestBB); in MergeBasicBlockIntoOnlyPred() 463 DestBB->getInstList().splice(DestBB->begin(), PredBB->getInstList()); in MergeBasicBlockIntoOnlyPred() 469 DT->changeImmediateDominator(DestBB, PredBBIDom); in MergeBasicBlockIntoOnlyPred() 474 PI->replaceAllUses(PredBB, DestBB); in MergeBasicBlockIntoOnlyPred() 475 PI->removeEdge(ProfileInfo::getEdge(PredBB, DestBB)); in MergeBasicBlockIntoOnlyPred()
|
/external/llvm/lib/Transforms/Scalar/ |
D | CodeGenPrepare.cpp | 112 bool CanMergeBlocks(const BasicBlock *BB, const BasicBlock *DestBB) const; 227 BasicBlock *DestBB = BI->getSuccessor(0); in EliminateMostlyEmptyBlocks() local 228 if (DestBB == BB) in EliminateMostlyEmptyBlocks() 231 if (!CanMergeBlocks(BB, DestBB)) in EliminateMostlyEmptyBlocks() 244 const BasicBlock *DestBB) const { in CanMergeBlocks() 253 if (User->getParent() != DestBB || !isa<PHINode>(User)) in CanMergeBlocks() 258 if (User->getParent() == DestBB) { in CanMergeBlocks() 273 const PHINode *DestBBPN = dyn_cast<PHINode>(DestBB->begin()); in CanMergeBlocks() 290 BBI = DestBB->begin(); in CanMergeBlocks() 314 BasicBlock *DestBB = BI->getSuccessor(0); in EliminateMostlyEmptyBlock() local [all …]
|
D | JumpThreading.cpp | 1095 BasicBlock *DestBB; in ProcessThreadableEdges() local 1097 DestBB = 0; in ProcessThreadableEdges() 1099 DestBB = BI->getSuccessor(cast<ConstantInt>(Val)->isZero()); in ProcessThreadableEdges() 1101 DestBB = SI->findCaseValue(cast<ConstantInt>(Val)).getCaseSuccessor(); in ProcessThreadableEdges() 1105 DestBB = cast<BlockAddress>(Val)->getBasicBlock(); in ProcessThreadableEdges() 1110 OnlyDest = DestBB; in ProcessThreadableEdges() 1111 else if (OnlyDest != DestBB) in ProcessThreadableEdges() 1114 PredToDestList.push_back(std::make_pair(Pred, DestBB)); in ProcessThreadableEdges()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 574 BasicBlock *DestBB = StoreBB->getTerminator()->getSuccessor(0); in SimplifyStoreAtEndOfBlock() local 578 pred_iterator PI = pred_begin(DestBB); in SimplifyStoreAtEndOfBlock() 585 if (++PI == pred_end(DestBB)) in SimplifyStoreAtEndOfBlock() 594 if (++PI != pred_end(DestBB)) in SimplifyStoreAtEndOfBlock() 599 if (StoreBB == DestBB || OtherBB == DestBB) in SimplifyStoreAtEndOfBlock() 667 MergedVal = InsertNewInstBefore(PN, DestBB->front()); in SimplifyStoreAtEndOfBlock() 672 BBI = DestBB->getFirstInsertionPt(); in SimplifyStoreAtEndOfBlock()
|
/external/llvm/lib/Target/ARM/ |
D | ARMConstantIslandPass.cpp | 1527 bool ARMConstantIslands::isBBInRange(MachineInstr *MI,MachineBasicBlock *DestBB, in isBBInRange() argument 1531 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset; in isBBInRange() 1533 DEBUG(dbgs() << "Branch of destination BB#" << DestBB->getNumber() in isBBInRange() 1554 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in fixupImmediateBr() local 1557 if (isBBInRange(MI, DestBB, Br.MaxDisp)) in fixupImmediateBr() 1595 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in fixupConditionalBr() local 1630 BMI->getOperand(0).setMBB(DestBB); in fixupConditionalBr() 1649 DEBUG(dbgs() << " Insert B to BB#" << DestBB->getNumber() in fixupConditionalBr() 1660 BuildMI(MBB, DebugLoc(), TII->get(Br.UncondBr)).addMBB(DestBB) in fixupConditionalBr() 1663 BuildMI(MBB, DebugLoc(), TII->get(Br.UncondBr)).addMBB(DestBB); in fixupConditionalBr() [all …]
|
/external/llvm/lib/Analysis/ |
D | ProfileInfo.cpp | 317 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/ |
D | ProfileInfo.h | 165 void replaceAllUses(const BType *RmBB, const BType *DestBB);
|
/external/llvm/lib/AsmParser/ |
D | LLParser.cpp | 3095 BasicBlock *DestBB; in ParseSwitch() local 3099 ParseTypeAndBasicBlock(DestBB, PFS)) in ParseSwitch() 3107 Table.push_back(std::make_pair(cast<ConstantInt>(Constant), DestBB)); in ParseSwitch() 3137 BasicBlock *DestBB; in ParseIndirectBr() local 3138 if (ParseTypeAndBasicBlock(DestBB, PFS)) in ParseIndirectBr() 3140 DestList.push_back(DestBB); in ParseIndirectBr() 3143 if (ParseTypeAndBasicBlock(DestBB, PFS)) in ParseIndirectBr() 3145 DestList.push_back(DestBB); in ParseIndirectBr()
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 2287 BasicBlock *DestBB = getBasicBlock(Record[1+3+i*2]); in ParseFunctionBody() local 2288 if (CaseVal == 0 || DestBB == 0) { in ParseFunctionBody() 2292 SI->addCase(CaseVal, DestBB); in ParseFunctionBody() 2308 if (BasicBlock *DestBB = getBasicBlock(Record[2+i])) { in ParseFunctionBody() local 2309 IBI->addDestination(DestBB); in ParseFunctionBody()
|
/external/llvm/lib/VMCore/ |
D | Instructions.cpp | 3295 void IndirectBrInst::addDestination(BasicBlock *DestBB) { in addDestination() argument 3302 OperandList[OpNo] = DestBB; in addDestination()
|