/external/llvm/lib/Transforms/Utils/ |
D | BreakCriticalEdges.cpp | 127 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 …]
|
D | Local.cpp | 417 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/ |
D | CodeGenPrepare.cpp | 103 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 …]
|
D | JumpThreading.cpp | 1080 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/ |
D | InstCombineLoadStoreAlloca.cpp | 506 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/ |
D | ARMConstantIslandPass.cpp | 1381 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/ |
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 | 166 void replaceAllUses(const BType *RmBB, const BType *DestBB);
|
/external/llvm/lib/AsmParser/ |
D | LLParser.cpp | 3072 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/ |
D | BitcodeReader.cpp | 2395 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/ |
D | Instructions.cpp | 2994 void IndirectBrInst::addDestination(BasicBlock *DestBB) { in addDestination() argument 3001 OperandList[OpNo] = DestBB; in addDestination()
|