Searched refs:CurrentBB (Results 1 – 10 of 10) sorted by relevance
613 if (!E || !CurrentBB || E->block() || til::ThreadSafetyTIL::isTrivial(E)) in addStatement()674 if (CurrE->block() == CurrentBB) { in makePhiNodeVar()721 unsigned NPreds = CurrentBB->numPredecessors(); in mergeEntryMap()761 unsigned NPreds = CurrentBB->numPredecessors(); in mergeEntryMapBackEdge()803 CurrentBB = lookupBlock(&Cfg->getEntry()); in enterCFG()822 CurrentBB = lookupBlock(B); in enterCFGBlock()823 CurrentBB->reservePredecessors(B->pred_size()); in enterCFGBlock()824 Scfg->add(CurrentBB); in enterCFGBlock()836 CurrentBB->addPredecessor(BlockMap[Pred->getBlockID()]); in handlePredecessor()855 CurrentBB->arguments().reserve( in enterCFGBlockBody()[all …]
866 BasicBlock *CurrentBB = currentLoop->getHeader(); in TryTrivialLoopUnswitch() local867 TerminatorInst *CurrentTerm = CurrentBB->getTerminator(); in TryTrivialLoopUnswitch()868 LLVMContext &Context = CurrentBB->getContext(); in TryTrivialLoopUnswitch()891 if (!currentLoop->contains(CurrentBB) || !Visited.insert(CurrentBB).second) in TryTrivialLoopUnswitch()897 for (Instruction &I : *CurrentBB) in TryTrivialLoopUnswitch()904 CurrentBB = BI->getSuccessor(0); in TryTrivialLoopUnswitch()906 CurrentBB = BI->getSuccessor(0); in TryTrivialLoopUnswitch()908 CurrentBB = BI->getSuccessor(1); in TryTrivialLoopUnswitch()917 CurrentTerm = CurrentBB->getTerminator(); in TryTrivialLoopUnswitch()
893 BasicBlock *CurrentBB = BB; in ProcessImpliedCondition() local903 if (PBI->getSuccessor(0) != CurrentBB && PBI->getSuccessor(1) != CurrentBB) in ProcessImpliedCondition()906 bool FalseDest = PBI->getSuccessor(1) == CurrentBB; in ProcessImpliedCondition()915 CurrentBB = CurrentPred; in ProcessImpliedCondition()916 CurrentPred = CurrentBB->getSinglePredecessor(); in ProcessImpliedCondition()
1028 BasicBlock *CurrentBB = currentLoop->getHeader(); in TryTrivialLoopUnswitch() local1029 TerminatorInst *CurrentTerm = CurrentBB->getTerminator(); in TryTrivialLoopUnswitch()1030 LLVMContext &Context = CurrentBB->getContext(); in TryTrivialLoopUnswitch()1053 if (!currentLoop->contains(CurrentBB) || !Visited.insert(CurrentBB).second) in TryTrivialLoopUnswitch()1059 for (Instruction &I : *CurrentBB) in TryTrivialLoopUnswitch()1065 CurrentBB = BI->getSuccessor(0); in TryTrivialLoopUnswitch()1067 CurrentBB = BI->getSuccessor(0); in TryTrivialLoopUnswitch()1069 CurrentBB = BI->getSuccessor(1); in TryTrivialLoopUnswitch()1081 CurrentBB = SI->findCaseValue(Cond)->getCaseSuccessor(); in TryTrivialLoopUnswitch()1087 CurrentTerm = CurrentBB->getTerminator(); in TryTrivialLoopUnswitch()
772 BasicBlock *CurrentBB = L.getHeader(); in unswitchAllTrivialConditions() local774 Visited.insert(CurrentBB); in unswitchAllTrivialConditions()779 if (llvm::any_of(*CurrentBB, in unswitchAllTrivialConditions()783 TerminatorInst *CurrentTerm = CurrentBB->getTerminator(); in unswitchAllTrivialConditions()803 auto *BI = dyn_cast<BranchInst>(CurrentBB->getTerminator()); in unswitchAllTrivialConditions()807 CurrentBB = BI->getSuccessor(0); in unswitchAllTrivialConditions()832 BI = cast<BranchInst>(CurrentBB->getTerminator()); in unswitchAllTrivialConditions()837 CurrentBB = BI->getSuccessor(0); in unswitchAllTrivialConditions()842 } while (L.contains(CurrentBB) && Visited.insert(CurrentBB).second); in unswitchAllTrivialConditions()
1221 BasicBlock *CurrentBB = BB; in ProcessImpliedCondition() local1231 if (PBI->getSuccessor(0) != CurrentBB && PBI->getSuccessor(1) != CurrentBB) in ProcessImpliedCondition()1234 bool CondIsTrue = PBI->getSuccessor(0) == CurrentBB; in ProcessImpliedCondition()1246 CurrentBB = CurrentPred; in ProcessImpliedCondition()1247 CurrentPred = CurrentBB->getSinglePredecessor(); in ProcessImpliedCondition()
341 : Arena(A), SelfVar(nullptr), Scfg(nullptr), CurrentBB(nullptr), in SExprBuilder()492 til::BasicBlock *CurrentBB; variable
1853 BasicBlock *CurrentBB = &*Current.getBasicBlockIterator(); in OptimizeWeakCalls() local1854 for (BasicBlock::iterator B = CurrentBB->begin(), in OptimizeWeakCalls()
1828 BasicBlock *CurrentBB = &*Current.getBasicBlockIterator(); in OptimizeWeakCalls() local1829 for (BasicBlock::iterator B = CurrentBB->begin(), in OptimizeWeakCalls()
2981 BasicBlock *CurrentBB = Current.getBasicBlockIterator(); in OptimizeWeakCalls() local2982 for (BasicBlock::iterator B = CurrentBB->begin(), in OptimizeWeakCalls()