/external/llvm/lib/Transforms/Utils/ |
H A D | BreakCriticalEdges.cpp | 123 /// 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 D | Local.cpp | 440 /// MergeBasicBlockIntoOnlyPred - DestBB is a block with one predecessor and its 441 /// predecessor is known to have one successor (DestBB!). Eliminate the edge 442 /// between them, moving the instructions in the predecessor into DestBB and 445 void llvm::MergeBasicBlockIntoOnlyPred(BasicBlock *DestBB, Pass *P) { argument 447 while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { 455 BasicBlock *PredBB = DestBB->getSinglePredecessor(); 458 // Zap anything that took the address of DestBB. Not doing this will give the 460 if (DestBB->hasAddressTaken()) { 461 BlockAddress *BA = BlockAddress::get(DestBB); 469 // Anything that branched to PredBB now branches to DestBB [all...] |
/external/llvm/lib/Transforms/Scalar/ |
H A D | CodeGenPrepare.cpp | 117 bool CanMergeBlocks(const BasicBlock *BB, const BasicBlock *DestBB) const; 283 BasicBlock *DestBB = BI->getSuccessor(0); local 284 if (DestBB == BB) 287 if (!CanMergeBlocks(BB, DestBB)) 296 /// CanMergeBlocks - Return true if we can merge BB into DestBB if there is a 300 const BasicBlock *DestBB) const { 309 if (User->getParent() != DestBB || !isa<PHINode>(User)) 311 // If User is inside DestBB block and it is a PHINode then check 314 if (User->getParent() == DestBB) { 326 // If BB and DestBB contai 370 BasicBlock *DestBB = BI->getSuccessor(0); local 372 DEBUG(dbgs() << "MERGING MOSTLY EMPTY BLOCKS - BEFORE:\\n" << *BB << *DestBB); local [all...] |
H A D | JumpThreading.cpp | 1097 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));
|
/external/llvm/lib/Target/ARM/ |
H A D | ARMConstantIslandPass.cpp | 1504 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...] |
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 709 BasicBlock *DestBB = StoreBB->getTerminator()->getSuccessor(0); local 713 pred_iterator PI = pred_begin(DestBB); 720 if (++PI == pred_end(DestBB)) 729 if (++PI != pred_end(DestBB)) 734 if (StoreBB == DestBB || OtherBB == DestBB) 802 MergedVal = InsertNewInstBefore(PN, DestBB->front()); 807 BBI = DestBB->getFirstInsertionPt();
|
/external/llvm/lib/Analysis/ |
H A D | ProfileInfo.cpp | 312 /// 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...] |
/external/llvm/include/llvm/Analysis/ |
H A D | ProfileInfo.h | 165 void replaceAllUses(const BType *RmBB, const BType *DestBB);
|
/external/llvm/lib/AsmParser/ |
H A D | LLParser.cpp | 3141 BasicBlock *DestBB; 3145 ParseTypeAndBasicBlock(DestBB, PFS)) 3153 Table.push_back(std::make_pair(cast<ConstantInt>(Constant), DestBB)); 3183 BasicBlock *DestBB; 3184 if (ParseTypeAndBasicBlock(DestBB, PFS)) 3186 DestList.push_back(DestBB); 3189 if (ParseTypeAndBasicBlock(DestBB, PFS)) 3191 DestList.push_back(DestBB);
|
/external/llvm/lib/Bitcode/Reader/ |
H A D | BitcodeReader.cpp | 2302 BasicBlock *DestBB = getBasicBlock(Record[CurIdx++]); local 2304 SI->addCase(Case, DestBB); 2328 BasicBlock *DestBB = getBasicBlock(Record[1+3+i*2]); local 2329 if (CaseVal == 0 || DestBB == 0) { 2333 SI->addCase(CaseVal, DestBB); 2349 if (BasicBlock *DestBB = getBasicBlock(Record[2+i])) { 2350 IBI->addDestination(DestBB);
|
/external/llvm/lib/VMCore/ |
H A D | Instructions.cpp | 3325 void IndirectBrInst::addDestination(BasicBlock *DestBB) { argument 3332 OperandList[OpNo] = DestBB;
|