/external/llvm/lib/Transforms/Utils/ |
BreakCriticalEdges.cpp | 81 /// of preds inside the loop, SplitBB is the new loop exit block, and DestBB is 85 BasicBlock *DestBB) { 91 for (BasicBlock::iterator I = DestBB->begin(); 124 BasicBlock *DestBB = TI->getSuccessor(SuccNum); 128 if (DestBB->isEHPad()) return nullptr; 132 TIBB->getName() + "." + DestBB->getName() + "_crit_edge"); 134 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); 145 // If there are any PHI nodes in DestBB, we need to update them so that they 149 for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) { 166 // If there are any other edges from TIBB to DestBB, update those to g [all...] |
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
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(); 178 BasicBlock *DestBB = TI->getSuccessor(SuccNum); 182 if (DestBB->isLandingPad()) return 0; 186 TIBB->getName() + "." + DestBB->getName() + "_crit_edge"); 188 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); 199 // If there are any PHI nodes in DestBB, we need to update them so that they 203 for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) { 220 // If there are any other edges from TIBB to DestBB, update those to g [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
SIInsertSkips.cpp | 309 MachineBasicBlock *DestBB = MI.getOperand(0).getMBB(); 311 if (!shouldSkip(**SrcMBB.succ_begin(), *DestBB)) 318 .addMBB(DestBB);
|
SILowerControlFlow.cpp | 284 MachineBasicBlock *DestBB = MI.getOperand(2).getMBB(); 305 .addMBB(DestBB);
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/MSP430/ |
MSP430BranchSelector.cpp | 128 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); 133 BlockOffsets[DestBB->getNumber()] - BlockOffsets[MBB->getNumber()]; 142 << printMBBReference(*DestBB) << ", Distance " 161 if (Succ == DestBB) { 204 MI = BuildMI(*MBB, MI, dl, TII->get(MSP430::Bi)).addMBB(DestBB);
|
/external/llvm/lib/Target/AArch64/ |
AArch64BranchRelaxation.cpp | 266 MachineBasicBlock *DestBB, 270 unsigned DestOffset = BlockInfo[DestBB->getNumber()].Offset; 272 DEBUG(dbgs() << "Branch of destination BB#" << DestBB->getNumber() 365 MachineBasicBlock *DestBB = getDestBlock(MI); 398 BMI->getOperand(0).setMBB(DestBB); 435 DEBUG(dbgs() << " Insert B to BB#" << DestBB->getNumber() 450 BuildMI(MBB, DebugLoc(), TII->get(AArch64::B)).addMBB(DestBB);
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
InstCombineLoadStoreAlloca.cpp | 505 BasicBlock *DestBB = StoreBB->getTerminator()->getSuccessor(0); 509 pred_iterator PI = pred_begin(DestBB); 516 if (++PI == pred_end(DestBB)) 525 if (++PI != pred_end(DestBB)) 530 if (StoreBB == DestBB || OtherBB == DestBB) 598 MergedVal = InsertNewInstBefore(PN, DestBB->front()); 603 BBI = DestBB->getFirstInsertionPt();
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
BranchRelaxation.cpp | 98 MachineBasicBlock *DestBB); 229 MachineBasicBlock *DestBB) { 251 OrigBB->addSuccessor(DestBB); 284 const MachineInstr &MI, const MachineBasicBlock &DestBB) const { 286 int64_t DestOffset = BlockInfo[DestBB.getNumber()].Offset; 292 << printMBBReference(DestBB) << " from " 311 MachineBasicBlock *DestBB) { 314 TII->insertUnconditionalBranch(*MBB, DestBB, DL, &NewBrSize); 445 MachineBasicBlock *DestBB = TII->getBranchDestBlock(MI); 447 int64_t DestOffset = BlockInfo[DestBB->getNumber()].Offset [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
BreakCriticalEdges.cpp | 99 /// of preds inside the loop, SplitBB is the new loop exit block, and DestBB is 103 BasicBlock *DestBB) { 109 for (PHINode &PN : DestBB->phis()) { 141 BasicBlock *DestBB = TI->getSuccessor(SuccNum); 145 if (DestBB->isEHPad()) return nullptr; 149 TIBB->getName() + "." + DestBB->getName() + "_crit_edge"); 151 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); 162 // If there are any PHI nodes in DestBB, we need to update them so that they 166 for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) { 183 // If there are any other edges from TIBB to DestBB, update those to g [all...] |
Local.cpp | 311 BasicBlock *DestBB = IBI->getDestination(i); 312 DestBB->removePredecessor(ParentBB); 314 Updates.push_back({DominatorTree::Delete, ParentBB, DestBB}); 656 /// MergeBasicBlockIntoOnlyPred - DestBB is a block with one predecessor and its 657 /// predecessor is known to have one successor (DestBB!). Eliminate the edge 658 /// between them, moving the instructions in the predecessor into DestBB and 660 void llvm::MergeBasicBlockIntoOnlyPred(BasicBlock *DestBB, DominatorTree *DT, 665 while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { 673 BasicBlock *PredBB = DestBB->getSinglePredecessor(); 677 if (PredBB == &DestBB->getParent()->getEntryBlock() [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineLoadStoreAlloca.cpp | [all...] |
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
CodeGenPrepare.cpp | 104 bool CanMergeBlocks(const BasicBlock *BB, const BasicBlock *DestBB) const; 201 BasicBlock *DestBB = BI->getSuccessor(0); 202 if (DestBB == BB) 205 if (!CanMergeBlocks(BB, DestBB)) 214 /// CanMergeBlocks - Return true if we can merge BB into DestBB if there is a 218 const BasicBlock *DestBB) const { 227 if (User->getParent() != DestBB || !isa<PHINode>(User)) 229 // If User is inside DestBB block and it is a PHINode then check 232 if (User->getParent() == DestBB) { 244 // If BB and DestBB contain any common predecessors, then the phi nodes in B [all...] |
JumpThreading.cpp | [all...] |
/external/llvm/lib/Target/Mips/ |
MipsConstantIslandPass.cpp | [all...] |
/external/llvm/lib/Transforms/Instrumentation/ |
PGOInstrumentation.cpp | 205 // So there might be multiple edges with same SrcBB and DestBB. 207 const BasicBlock *DestBB; 213 : SrcBB(Src), DestBB(Dest), Weight(W), InMST(false), Removed(false), 313 BasicBlock *DestBB = const_cast<BasicBlock *>(E->DestBB); 316 return DestBB; 317 if (DestBB == nullptr) 321 // otherwise, the DestBB if this is not a critical edge. 326 return DestBB; 332 << getBBInfo(DestBB).Index << "\n") [all...] |
/external/llvm/lib/Transforms/Scalar/ |
JumpThreading.cpp | [all...] |
/external/swiftshader/third_party/LLVM/lib/Target/ARM/ |
ARMConstantIslandPass.cpp | [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/ |
MipsConstantIslandPass.cpp | [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
InstCombineLoadStoreAlloca.cpp | [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
GVNHoist.cpp | [all...] |
JumpThreading.cpp | [all...] |
/external/llvm/lib/Target/ARM/ |
ARMConstantIslandPass.cpp | [all...] |
/external/swiftshader/third_party/LLVM/lib/Bitcode/Reader/ |
BitcodeReader.cpp | [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/ |
ARMConstantIslandPass.cpp | [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/ |
PGOInstrumentation.cpp | 458 // So there might be multiple edges with same SrcBB and DestBB. 460 const BasicBlock *DestBB; 467 : SrcBB(Src), DestBB(Dest), Weight(W) {} 687 BasicBlock *DestBB = const_cast<BasicBlock *>(E->DestBB); 690 return DestBB; 691 if (DestBB == nullptr) 695 // otherwise, the DestBB if this is not a critical edge. 700 return DestBB; 706 << " --> " << getBBInfo(DestBB).Index << "\n") [all...] |