/external/llvm/lib/Transforms/Utils/ |
D | BreakCriticalEdges.cpp | 86 BasicBlock *DestBB) { in createPHIsForSplitLoopExit() argument 92 for (BasicBlock::iterator I = DestBB->begin(); in createPHIsForSplitLoopExit() 141 BasicBlock *DestBB = TI->getSuccessor(SuccNum); in SplitCriticalEdge() local 145 if (DestBB->isEHPad()) return nullptr; in SplitCriticalEdge() 149 TIBB->getName() + "." + DestBB->getName() + "_crit_edge"); in SplitCriticalEdge() 151 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); in SplitCriticalEdge() 166 for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) { in SplitCriticalEdge() 188 if (TI->getSuccessor(i) != DestBB) continue; in SplitCriticalEdge() 191 DestBB->removePredecessor(TIBB, Options.DontDeleteUselessPHIs); in SplitCriticalEdge() 213 if (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { in SplitCriticalEdge() [all …]
|
D | Local.cpp | 553 void llvm::MergeBasicBlockIntoOnlyPred(BasicBlock *DestBB, DominatorTree *DT) { in MergeBasicBlockIntoOnlyPred() argument 555 while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { in MergeBasicBlockIntoOnlyPred() 563 BasicBlock *PredBB = DestBB->getSinglePredecessor(); in MergeBasicBlockIntoOnlyPred() 568 if (DestBB->hasAddressTaken()) { in MergeBasicBlockIntoOnlyPred() 569 BlockAddress *BA = BlockAddress::get(DestBB); in MergeBasicBlockIntoOnlyPred() 578 PredBB->replaceAllUsesWith(DestBB); in MergeBasicBlockIntoOnlyPred() 582 DestBB->getInstList().splice(DestBB->begin(), PredBB->getInstList()); in MergeBasicBlockIntoOnlyPred() 586 if (PredBB == &DestBB->getParent()->getEntryBlock()) in MergeBasicBlockIntoOnlyPred() 587 DestBB->moveAfter(PredBB); in MergeBasicBlockIntoOnlyPred() 591 DT->changeImmediateDominator(DestBB, PredBBIDom); in MergeBasicBlockIntoOnlyPred()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | PGOInstrumentation.cpp | 174 const BasicBlock *DestBB; member 180 : SrcBB(Src), DestBB(Dest), Weight(W), InMST(false), Removed(false), in PGOEdge() 280 BasicBlock *DestBB = const_cast<BasicBlock *>(E->DestBB); in getInstrBB() local 283 return DestBB; in getInstrBB() 284 if (DestBB == nullptr) in getInstrBB() 293 return DestBB; in getInstrBB() 299 << getBBInfo(DestBB).Index << "\n"); in getInstrBB() 300 unsigned SuccNum = GetSuccessorNumber(SrcBB, DestBB); in getInstrBB() 482 BasicBlock *DestBB = const_cast<BasicBlock *>(E->DestBB); in setInstrumentedCounts() local 487 PGOUseEdge &NewEdge1 = FuncInfo.MST.addEdge(InstrBB, DestBB, 0); in setInstrumentedCounts() [all …]
|
D | CFGMST.h | 150 if (Ei->DestBB && Ei->DestBB->isLandingPad()) { in computeMinimumSpanningTree() 151 if (unionGroups(Ei->SrcBB, Ei->DestBB)) in computeMinimumSpanningTree() 160 if (unionGroups(Ei->SrcBB, Ei->DestBB)) in computeMinimumSpanningTree() 181 << getBBInfo(EI->DestBB).Index << EI->infoString() << "\n"; in dumpEdges()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64BranchRelaxation.cpp | 266 MachineBasicBlock *DestBB, in isBlockInRange() argument 270 unsigned DestOffset = BlockInfo[DestBB->getNumber()].Offset; in isBlockInRange() 272 DEBUG(dbgs() << "Branch of destination BB#" << DestBB->getNumber() in isBlockInRange() 365 MachineBasicBlock *DestBB = getDestBlock(MI); in fixupConditionalBranch() local 398 BMI->getOperand(0).setMBB(DestBB); in fixupConditionalBranch() 435 DEBUG(dbgs() << " Insert B to BB#" << DestBB->getNumber() in fixupConditionalBranch() 450 BuildMI(MBB, DebugLoc(), TII->get(AArch64::B)).addMBB(DestBB); in fixupConditionalBranch()
|
/external/llvm/lib/Target/Mips/ |
D | MipsConstantIslandPass.cpp | 1493 (MachineInstr *MI,MachineBasicBlock *DestBB, unsigned MaxDisp) { in isBBInRange() argument 1498 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset; in isBBInRange() 1500 DEBUG(dbgs() << "Branch of destination BB#" << DestBB->getNumber() in isBBInRange() 1522 MachineBasicBlock *DestBB = MI->getOperand(TargetOperand).getMBB(); in fixupImmediateBr() local 1525 if (isBBInRange(MI, DestBB, Br.MaxDisp)) in fixupImmediateBr() 1541 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in fixupUnconditionalBr() local 1544 if (isBBInRange(MI, DestBB, BimmX16MaxDisp)) { in fixupUnconditionalBr() 1560 DestBB->setAlignment(2); in fixupUnconditionalBr() 1582 MachineBasicBlock *DestBB = MI->getOperand(TargetOperand).getMBB(); in fixupConditionalBr() local 1588 if (isBBInRange(MI, DestBB, LongFormMaxOff)) { in fixupConditionalBr() [all …]
|
/external/llvm/lib/Target/ARM/ |
D | ARMConstantIslandPass.cpp | 1646 bool ARMConstantIslands::isBBInRange(MachineInstr *MI,MachineBasicBlock *DestBB, in isBBInRange() argument 1650 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset; in isBBInRange() 1652 DEBUG(dbgs() << "Branch of destination BB#" << DestBB->getNumber() in isBBInRange() 1673 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in fixupImmediateBr() local 1676 if (isBBInRange(MI, DestBB, Br.MaxDisp)) in fixupImmediateBr() 1714 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); in fixupConditionalBr() local 1749 BMI->getOperand(0).setMBB(DestBB); in fixupConditionalBr() 1768 DEBUG(dbgs() << " Insert B to BB#" << DestBB->getNumber() in fixupConditionalBr() 1779 BuildMI(MBB, DebugLoc(), TII->get(Br.UncondBr)).addMBB(DestBB) in fixupConditionalBr() 1782 BuildMI(MBB, DebugLoc(), TII->get(Br.UncondBr)).addMBB(DestBB); in fixupConditionalBr() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 1152 BasicBlock *DestBB = StoreBB->getTerminator()->getSuccessor(0); in SimplifyStoreAtEndOfBlock() local 1156 pred_iterator PI = pred_begin(DestBB); in SimplifyStoreAtEndOfBlock() 1163 if (++PI == pred_end(DestBB)) in SimplifyStoreAtEndOfBlock() 1172 if (++PI != pred_end(DestBB)) in SimplifyStoreAtEndOfBlock() 1177 if (StoreBB == DestBB || OtherBB == DestBB) in SimplifyStoreAtEndOfBlock() 1245 MergedVal = InsertNewInstBefore(PN, DestBB->front()); in SimplifyStoreAtEndOfBlock() 1250 BBI = DestBB->getFirstInsertionPt(); in SimplifyStoreAtEndOfBlock()
|
/external/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 1219 BasicBlock *DestBB; in ProcessThreadableEdges() local 1221 DestBB = nullptr; in ProcessThreadableEdges() 1223 DestBB = BI->getSuccessor(cast<ConstantInt>(Val)->isZero()); in ProcessThreadableEdges() 1225 DestBB = SI->findCaseValue(cast<ConstantInt>(Val)).getCaseSuccessor(); in ProcessThreadableEdges() 1229 DestBB = cast<BlockAddress>(Val)->getBasicBlock(); in ProcessThreadableEdges() 1234 OnlyDest = DestBB; in ProcessThreadableEdges() 1235 else if (OnlyDest != DestBB) in ProcessThreadableEdges() 1238 PredToDestList.push_back(std::make_pair(Pred, DestBB)); in ProcessThreadableEdges()
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 169 bool canMergeBlocks(const BasicBlock *BB, const BasicBlock *DestBB) const; 381 BasicBlock *DestBB = BI->getSuccessor(0); in eliminateMostlyEmptyBlocks() local 382 if (DestBB == BB) in eliminateMostlyEmptyBlocks() 385 if (!canMergeBlocks(BB, DestBB)) in eliminateMostlyEmptyBlocks() 398 const BasicBlock *DestBB) const { in canMergeBlocks() 406 if (UI->getParent() != DestBB || !isa<PHINode>(UI)) in canMergeBlocks() 411 if (UI->getParent() == DestBB) { in canMergeBlocks() 426 const PHINode *DestBBPN = dyn_cast<PHINode>(DestBB->begin()); in canMergeBlocks() 443 BBI = DestBB->begin(); in canMergeBlocks() 467 BasicBlock *DestBB = BI->getSuccessor(0); in eliminateMostlyEmptyBlock() local [all …]
|
/external/llvm/lib/AsmParser/ |
D | LLParser.cpp | 4956 BasicBlock *DestBB; in ParseSwitch() local 4960 ParseTypeAndBasicBlock(DestBB, PFS)) in ParseSwitch() 4968 Table.push_back(std::make_pair(cast<ConstantInt>(Constant), DestBB)); in ParseSwitch() 4998 BasicBlock *DestBB; in ParseIndirectBr() local 4999 if (ParseTypeAndBasicBlock(DestBB, PFS)) in ParseIndirectBr() 5001 DestList.push_back(DestBB); in ParseIndirectBr() 5004 if (ParseTypeAndBasicBlock(DestBB, PFS)) in ParseIndirectBr() 5006 DestList.push_back(DestBB); in ParseIndirectBr() 5241 BasicBlock *DestBB; in ParseCatchSwitch() local 5242 if (ParseTypeAndBasicBlock(DestBB, PFS)) in ParseCatchSwitch() [all …]
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 4590 BasicBlock *DestBB = getBasicBlock(Record[CurIdx++]); in parseFunctionBody() local 4593 SI->addCase(*cvi, DestBB); in parseFunctionBody() 4614 BasicBlock *DestBB = getBasicBlock(Record[1+3+i*2]); in parseFunctionBody() local 4615 if (!CaseVal || !DestBB) { in parseFunctionBody() 4619 SI->addCase(CaseVal, DestBB); in parseFunctionBody() 4635 if (BasicBlock *DestBB = getBasicBlock(Record[2+i])) { in parseFunctionBody() local 4636 IBI->addDestination(DestBB); in parseFunctionBody()
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 3744 void IndirectBrInst::addDestination(BasicBlock *DestBB) { in addDestination() argument 3751 getOperandList()[OpNo] = DestBB; in addDestination()
|