/external/llvm/lib/Transforms/Scalar/ |
D | LoopInstSimplify.cpp | 156 BasicBlock *SuccBB = *SI; in runOnLoop() local 157 if (!Visited.insert(SuccBB).second) in runOnLoop() 160 const Loop *SuccLoop = LI->getLoopFor(SuccBB); in runOnLoop() 161 if (SuccLoop && SuccLoop->getHeader() == SuccBB in runOnLoop() 163 VisitStack.push_back(WorklistItem(SuccBB, true)); in runOnLoop() 178 ExitBlocks.end(), SuccBB); in runOnLoop() 182 VisitStack.push_back(WorklistItem(SuccBB, false)); in runOnLoop()
|
D | TailRecursionElimination.cpp | 337 for (auto *SuccBB : make_range(succ_begin(BB), succ_end(BB))) { in markTails() local 338 auto &State = Visited[SuccBB]; in markTails() 342 WorklistEscaped.push_back(SuccBB); in markTails() 344 WorklistUnescaped.push_back(SuccBB); in markTails()
|
D | JumpThreading.cpp | 123 BasicBlock *SuccBB); 1389 BasicBlock *SuccBB) { in ThreadEdge() argument 1391 if (SuccBB == BB) { in ThreadEdge() 1401 << "' to dest BB '" << SuccBB->getName() in ThreadEdge() 1425 << SuccBB->getName() << "' with cost: " << JumpThreadCost in ThreadEdge() 1429 LVI->threadEdge(PredBB, BB, SuccBB); in ThreadEdge() 1464 BranchInst *NewBI =BranchInst::Create(SuccBB, NewBB); in ThreadEdge() 1469 AddPHINodeEntriesForMappedBlock(SuccBB, BB, NewBB, ValueMapping); in ThreadEdge()
|
/external/llvm/lib/CodeGen/ |
D | BranchFolding.cpp | 474 static void FixTail(MachineBasicBlock *CurMBB, MachineBasicBlock *SuccBB, in FixTail() argument 487 TII->InsertBranch(*CurMBB, SuccBB, nullptr, Cond, dl); in FixTail() 492 TII->InsertBranch(*CurMBB, SuccBB, nullptr, in FixTail() 559 MachineBasicBlock *SuccBB, in ProfitableToMerge() argument 590 if (SuccBB && MBB1 != PredBB && MBB2 != PredBB && in ProfitableToMerge() 624 MachineBasicBlock *SuccBB, in ComputeSameTails() argument 638 SuccBB, PredBB)) { in ComputeSameTails() 659 MachineBasicBlock *SuccBB, in RemoveBlocksWithHash() argument 667 if (SuccBB && CurMBB != PredBB) in RemoveBlocksWithHash() 668 FixTail(CurMBB, SuccBB, TII); in RemoveBlocksWithHash() [all …]
|
D | BranchFolding.h | 117 bool TryTailMergeBlocks(MachineBasicBlock* SuccBB, 128 MachineBasicBlock *SuccBB, 130 void RemoveBlocksWithHash(unsigned CurHash, MachineBasicBlock* SuccBB, 133 MachineBasicBlock *SuccBB,
|
D | WinEHPrepare.cpp | 1553 BasicBlock *SuccBB = followSingleUnconditionalBranches(BB); in findCleanupHandlers() local 1554 if (SuccBB == BB || SuccBB == EndBB) in findCleanupHandlers() 1556 BB = SuccBB; in findCleanupHandlers() 1660 BasicBlock *SuccBB = BB; in findCleanupHandlers() local 1663 SuccBB = BB->splitBasicBlock(FinallyCall.getInstruction()->getNextNode()); in findCleanupHandlers() 1666 SuccBB = cast<InvokeInst>(FinallyCall.getInstruction())->getNormalDest(); in findCleanupHandlers() 1668 SuccBB = BB->getUniqueSuccessor(); in findCleanupHandlers() 1669 assert(SuccBB && "splitOutlinedFinallyCalls didn't insert a branch"); in findCleanupHandlers() 1672 BB = SuccBB; in findCleanupHandlers()
|
D | LiveVariables.cpp | 788 MachineBasicBlock *SuccBB) { in addNewBlock() argument 793 MachineBasicBlock::iterator BBI = SuccBB->begin(), BBE = SuccBB->end(); in addNewBlock() 828 if (Kills.count(Reg) || VI.AliveBlocks.test(SuccBB->getNumber())) in addNewBlock()
|
D | TailDuplication.cpp | 468 MachineBasicBlock *SuccBB = *SI; in UpdateSuccessorsPHIs() local 469 for (MachineBasicBlock::iterator II = SuccBB->begin(), EE = SuccBB->end(); in UpdateSuccessorsPHIs() 512 if (!SrcBB->isSuccessor(SuccBB)) in UpdateSuccessorsPHIs()
|
D | IfConversion.cpp | 438 MachineBasicBlock *SuccBB = *SI; in findFalseBlock() local 439 if (SuccBB != TrueBB) in findFalseBlock() 440 return SuccBB; in findFalseBlock()
|
/external/llvm/lib/Target/Mips/ |
D | MipsDelaySlotFiller.cpp | 84 const MachineBasicBlock &SuccBB); 346 const MachineBasicBlock &SuccBB) { in addLiveOut() argument 349 if (*SI != &SuccBB) in addLiveOut() 732 MachineBasicBlock *SuccBB = selectSuccBB(MBB); in searchSuccBBs() local 734 if (!SuccBB) in searchSuccBBs() 744 for (MachineBasicBlock::pred_iterator PI = SuccBB->pred_begin(), in searchSuccBBs() 745 PE = SuccBB->pred_end(); PI != PE; ++PI) in searchSuccBBs() 746 if (!examinePred(**PI, *SuccBB, RegDU, HasMultipleSuccs, BrMap)) in searchSuccBBs() 762 if (!searchRange(MBB, SuccBB->begin(), SuccBB->end(), RegDU, *IM, Slot, in searchSuccBBs() 767 addLiveInRegs(Filler, *SuccBB); in searchSuccBBs()
|
/external/llvm/lib/IR/ |
D | BasicBlock.cpp | 244 BasicBlock *SuccBB = *SI; in getUniqueSuccessor() local 247 if (*SI != SuccBB) in getUniqueSuccessor() 252 return SuccBB; in getUniqueSuccessor()
|
/external/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARCOpts.cpp | 1389 BasicBlock *SuccBB = *SuccStack.back().second++; in ComputePostOrders() local 1390 if (Visited.insert(SuccBB).second) { in ComputePostOrders() 1391 TerminatorInst *TI = cast<TerminatorInst>(&SuccBB->back()); in ComputePostOrders() 1392 SuccStack.push_back(std::make_pair(SuccBB, succ_iterator(TI))); in ComputePostOrders() 1393 BBStates[CurrBB].addSucc(SuccBB); in ComputePostOrders() 1394 BBState &SuccStates = BBStates[SuccBB]; in ComputePostOrders() 1396 OnStack.insert(SuccBB); in ComputePostOrders() 1400 if (!OnStack.count(SuccBB)) { in ComputePostOrders() 1401 BBStates[CurrBB].addSucc(SuccBB); in ComputePostOrders() 1402 BBStates[SuccBB].addPred(CurrBB); in ComputePostOrders()
|
/external/llvm/lib/Transforms/Utils/ |
D | PromoteMemoryToRegister.cpp | 914 BasicBlock *SuccBB = SuccNode->getBlock(); in DetermineInsertionPoint() local 915 if (!LiveInBlocks.count(SuccBB)) in DetermineInsertionPoint() 918 DFBlocks.push_back(std::make_pair(BBNumbers[SuccBB], SuccBB)); in DetermineInsertionPoint() 919 if (!DefBlocks.count(SuccBB)) in DetermineInsertionPoint()
|
D | LowerSwitch.cpp | 160 static void fixPhis(BasicBlock *SuccBB, BasicBlock *OrigBB, BasicBlock *NewBB, in fixPhis() argument 162 for (BasicBlock::iterator I = SuccBB->begin(), IE = SuccBB->getFirstNonPHI(); in fixPhis()
|
/external/llvm/include/llvm/CodeGen/ |
D | LiveVariables.h | 300 MachineBasicBlock *SuccBB);
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | FastISel.cpp | 1984 const BasicBlock *SuccBB = TI->getSuccessor(succ); in handlePHINodesInSuccessorBlocks() local 1985 if (!isa<PHINode>(SuccBB->begin())) in handlePHINodesInSuccessorBlocks() 1987 MachineBasicBlock *SuccMBB = FuncInfo.MBBMap[SuccBB]; in handlePHINodesInSuccessorBlocks() 1999 for (BasicBlock::const_iterator I = SuccBB->begin(); in handlePHINodesInSuccessorBlocks()
|
D | SelectionDAGBuilder.cpp | 7714 const BasicBlock *SuccBB = TI->getSuccessor(succ); in HandlePHINodesInSuccessorBlocks() local 7715 if (!isa<PHINode>(SuccBB->begin())) continue; in HandlePHINodesInSuccessorBlocks() 7716 MachineBasicBlock *SuccMBB = FuncInfo.MBBMap[SuccBB]; in HandlePHINodesInSuccessorBlocks() 7728 for (BasicBlock::const_iterator I = SuccBB->begin(); in HandlePHINodesInSuccessorBlocks()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 1944 BasicBlock *SuccBB; in tryToMoveFreeBeforeNullTest() local 1945 if (!match(FreeInstrBB->getTerminator(), m_UnconditionalBr(SuccBB))) in tryToMoveFreeBeforeNullTest() 1958 if (SuccBB != (Pred == ICmpInst::ICMP_EQ ? TrueBB : FalseBB)) in tryToMoveFreeBeforeNullTest()
|