/external/llvm/lib/Transforms/Utils/ |
H A D | BreakCriticalEdges.cpp | 90 /// is the new loop exit block, and DestBB is the old loop exit, now the 94 BasicBlock *DestBB) { 100 for (BasicBlock::iterator I = DestBB->begin(); 151 BasicBlock *DestBB = TI->getSuccessor(SuccNum); local 155 if (DestBB->isLandingPad()) return nullptr; 159 TIBB->getName() + "." + DestBB->getName() + "_crit_edge"); 161 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); 172 // If there are any PHI nodes in DestBB, we need to update them so that they 176 for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) { 193 // If there are any other edges from TIBB to DestBB, updat 92 createPHIsForSplitLoopExit(ArrayRef<BasicBlock *> Preds, BasicBlock *SplitBB, BasicBlock *DestBB) argument [all...] |
H A D | Local.cpp | 476 /// MergeBasicBlockIntoOnlyPred - DestBB is a block with one predecessor and its 477 /// predecessor is known to have one successor (DestBB!). Eliminate the edge 478 /// between them, moving the instructions in the predecessor into DestBB and 481 void llvm::MergeBasicBlockIntoOnlyPred(BasicBlock *DestBB, Pass *P) { argument 483 while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { 491 BasicBlock *PredBB = DestBB->getSinglePredecessor(); 494 // Zap anything that took the address of DestBB. Not doing this will give the 496 if (DestBB->hasAddressTaken()) { 497 BlockAddress *BA = BlockAddress::get(DestBB); 505 // Anything that branched to PredBB now branches to DestBB [all...] |
/external/llvm/lib/Target/AArch64/ |
H A D | AArch64BranchRelaxation.cpp | 256 MachineBasicBlock *DestBB, 260 unsigned DestOffset = BlockInfo[DestBB->getNumber()].Offset; 262 DEBUG(dbgs() << "Branch of destination BB#" << DestBB->getNumber() 355 MachineBasicBlock *DestBB = getDestBlock(MI); local 388 BMI->getOperand(0).setMBB(DestBB); 425 DEBUG(dbgs() << " Insert B to BB#" << DestBB->getNumber() 440 BuildMI(MBB, DebugLoc(), TII->get(AArch64::B)).addMBB(DestBB); 255 isBlockInRange(MachineInstr *MI, MachineBasicBlock *DestBB, unsigned Bits) argument
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 733 BasicBlock *DestBB = StoreBB->getTerminator()->getSuccessor(0); local 737 pred_iterator PI = pred_begin(DestBB); 744 if (++PI == pred_end(DestBB)) 753 if (++PI != pred_end(DestBB)) 758 if (StoreBB == DestBB || OtherBB == DestBB) 826 MergedVal = InsertNewInstBefore(PN, DestBB->front()); 831 BBI = DestBB->getFirstInsertionPt();
|
/external/llvm/lib/Transforms/Scalar/ |
H A D | JumpThreading.cpp | 1131 BasicBlock *DestBB; local 1133 DestBB = nullptr; 1135 DestBB = BI->getSuccessor(cast<ConstantInt>(Val)->isZero()); 1137 DestBB = SI->findCaseValue(cast<ConstantInt>(Val)).getCaseSuccessor(); 1141 DestBB = cast<BlockAddress>(Val)->getBasicBlock(); 1146 OnlyDest = DestBB; 1147 else if (OnlyDest != DestBB) 1150 PredToDestList.push_back(std::make_pair(Pred, DestBB));
|
/external/llvm/lib/Bitcode/Reader/ |
H A D | BitcodeReader.cpp | 2697 BasicBlock *DestBB = getBasicBlock(Record[CurIdx++]); local 2700 SI->addCase(*cvi, DestBB); 2721 BasicBlock *DestBB = getBasicBlock(Record[1+3+i*2]); local 2722 if (!CaseVal || !DestBB) { 2726 SI->addCase(CaseVal, DestBB); 2742 if (BasicBlock *DestBB = getBasicBlock(Record[2+i])) { 2743 IBI->addDestination(DestBB);
|
/external/llvm/lib/Target/ARM/ |
H A D | ARMConstantIslandPass.cpp | 1505 bool ARMConstantIslands::isBBInRange(MachineInstr *MI,MachineBasicBlock *DestBB, argument 1509 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset; 1511 DEBUG(dbgs() << "Branch of destination BB#" << DestBB->getNumber() 1532 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); local 1534 // Check to see if the DestBB is already in-range. 1535 if (isBBInRange(MI, DestBB, Br.MaxDisp)) 1573 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); local 1608 BMI->getOperand(0).setMBB(DestBB); 1627 DEBUG(dbgs() << " Insert B to BB#" << DestBB->getNumber() 1638 BuildMI(MBB, DebugLoc(), TII->get(Br.UncondBr)).addMBB(DestBB) 1774 MachineBasicBlock *DestBB = Br.MI->getOperand(0).getMBB(); local 1804 MachineBasicBlock *DestBB = Br.MI->getOperand(0).getMBB(); local [all...] |
/external/llvm/lib/Target/Mips/ |
H A D | MipsConstantIslandPass.cpp | 1500 (MachineInstr *MI,MachineBasicBlock *DestBB, unsigned MaxDisp) { 1505 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset; 1507 DEBUG(dbgs() << "Branch of destination BB#" << DestBB->getNumber() 1529 MachineBasicBlock *DestBB = MI->getOperand(TargetOperand).getMBB(); local 1531 // Check to see if the DestBB is already in-range. 1532 if (isBBInRange(MI, DestBB, Br.MaxDisp)) 1548 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); local 1551 if (isBBInRange(MI, DestBB, BimmX16MaxDisp)) { 1567 DestBB->setAlignment(2); 1589 MachineBasicBlock *DestBB local 1499 isBBInRange(MachineInstr *MI,MachineBasicBlock *DestBB, unsigned MaxDisp) argument [all...] |
/external/llvm/lib/CodeGen/ |
H A D | CodeGenPrepare.cpp | 136 bool CanMergeBlocks(const BasicBlock *BB, const BasicBlock *DestBB) const; 326 BasicBlock *DestBB = BI->getSuccessor(0); local 327 if (DestBB == BB) 330 if (!CanMergeBlocks(BB, DestBB)) 339 /// CanMergeBlocks - Return true if we can merge BB into DestBB if there is a 343 const BasicBlock *DestBB) const { 351 if (UI->getParent() != DestBB || !isa<PHINode>(UI)) 353 // If User is inside DestBB block and it is a PHINode then check 356 if (UI->getParent() == DestBB) { 368 // If BB and DestBB contai 412 BasicBlock *DestBB = BI->getSuccessor(0); local 414 DEBUG(dbgs() << "MERGING MOSTLY EMPTY BLOCKS - BEFORE:\\n" << *BB << *DestBB); local [all...] |
/external/llvm/lib/IR/ |
H A D | Instructions.cpp | 3518 void IndirectBrInst::addDestination(BasicBlock *DestBB) { argument 3525 OperandList[OpNo] = DestBB;
|