• Home
  • Raw
  • Download

Lines Matching refs:BranchInst

162   bool SimplifyUncondBranch(BranchInst *BI, IRBuilder<> &Builder);
163 bool SimplifyCondBranch(BranchInst *BI, IRBuilder<> &Builder);
204 isProfitableToFoldUnconditional(BranchInst *SI1, BranchInst *SI2, in isProfitableToFoldUnconditional()
313 BranchInst *BI = dyn_cast<BranchInst>(PBB->getTerminator()); in DominatesMergePoint()
630 } else if (BranchInst *BI = dyn_cast<BranchInst>(TI)) { in EraseTerminatorInstAndDCECond()
653 } else if (BranchInst *BI = dyn_cast<BranchInst>(TI)) in isValueEqualityComparison()
684 BranchInst *BI = cast<BranchInst>(TI); in GetValueEqualityComparisonCases()
773 if (isa<BranchInst>(TI)) { in SimplifyEqualityComparisonWithOnlyPredecessor()
920 if (BranchInst *BI = dyn_cast<BranchInst>(TI)) { in GetBranchWeights()
1138 BranchInst::Create(InfLoopBlock, InfLoopBlock); in FoldValueComparisonIntoPredecessors()
1173 static bool HoistThenElseCodeToIf(BranchInst *BI, in HoistThenElseCodeToIf()
1326 static bool SinkThenElseCodeToEnd(BranchInst *BI1) { in SinkThenElseCodeToEnd()
1341 BranchInst *BI2 = dyn_cast<BranchInst>(BB2->getTerminator()); in SinkThenElseCodeToEnd()
1595 static bool SpeculativelyExecuteBB(BranchInst *BI, BasicBlock *ThenBB, in SpeculativelyExecuteBB()
1779 BranchInst *BI = cast<BranchInst>(BB->getTerminator()); in BlockIsSimpleEnoughToThreadThrough()
1806 static bool FoldCondBranchOnPHI(BranchInst *BI, const DataLayout &DL) { in FoldCondBranchOnPHI()
1856 BranchInst::Create(RealDest, EdgeBB); in FoldCondBranchOnPHI()
1989 if (cast<BranchInst>(IfBlock1->getTerminator())->isConditional()) { in FoldTwoEntryPHINode()
2003 if (cast<BranchInst>(IfBlock2->getTerminator())->isConditional()) { in FoldTwoEntryPHINode()
2060 static bool SimplifyCondBranchToTwoReturns(BranchInst *BI, in SimplifyCondBranchToTwoReturns()
2165 static bool extractPredSuccWeights(BranchInst *PBI, BranchInst *BI, in extractPredSuccWeights()
2188 bool llvm::FoldBranchToCommonDest(BranchInst *BI, unsigned BonusInstThreshold) { in FoldBranchToCommonDest()
2200 if (BranchInst *PBI = dyn_cast<BranchInst>(PB->getTerminator())) in FoldBranchToCommonDest()
2276 BranchInst *PBI = dyn_cast<BranchInst>(PredBlock->getTerminator()); in FoldBranchToCommonDest()
2456 BranchInst *New_PBI = BranchInst::Create(TrueDest, PBI); in FoldBranchToCommonDest()
2622 Value *PCond = cast<BranchInst>(PFB->getSinglePredecessor()->getTerminator()) in mergeConditionalStoreToAddress()
2624 Value *QCond = cast<BranchInst>(QFB->getSinglePredecessor()->getTerminator()) in mergeConditionalStoreToAddress()
2658 static bool mergeConditionalStores(BranchInst *PBI, BranchInst *QBI) { in mergeConditionalStores()
2761 static bool SimplifyCondBranchToCondBranch(BranchInst *PBI, BranchInst *BI, in SimplifyCondBranchToCondBranch()
2794 if ((PBI = dyn_cast<BranchInst>(P->getTerminator())) && PBI != BI && in SimplifyCondBranchToCondBranch()
2900 BranchInst::Create(InfLoopBlock, InfLoopBlock); in SimplifyCondBranchToCondBranch()
3042 BranchInst *NewBI = Builder.CreateCondBr(Cond, TrueBB, FalseBB); in SimplifyTerminatorOnSelect()
3251 static bool SimplifyBranchOnICmpChain(BranchInst *BI, IRBuilder<> &Builder, in SimplifyBranchOnICmpChain()
3639 BranchInst::Create(UnwindDest, RI->getParent()); in mergeCleanupPad()
3668 SmallVector<BranchInst *, 8> CondBranchPreds; in SimplifyReturn()
3672 if (BranchInst *BI = dyn_cast<BranchInst>(PTI)) { in SimplifyReturn()
3704 BranchInst *BI = CondBranchPreds.pop_back_val(); in SimplifyReturn()
3778 if (auto *BI = dyn_cast<BranchInst>(TI)) { in SimplifyUnreachable()
3942 BranchInst *NewBI = Builder.CreateCondBr(Cmp, ContiguousDest, OtherDest); in TurnSwitchRangeIntoICmp()
4082 BranchInst *Branch = dyn_cast<BranchInst>(BB->getTerminator()); in FindPHIForConditionForwarding()
4744 User *PhiUser, BasicBlock *PhiBlock, BranchInst *RangeCheckBranch, in reuseTableCompare()
4928 BranchInst *RangeCheckBranch = nullptr; in SwitchToLookupTable()
5113 BranchInst::Create(IBI->getDestination(0), IBI); in SimplifyIndirectBr()
5146 static bool TryToMergeLandingPad(LandingPadInst *LPad, BranchInst *BI, in TryToMergeLandingPad()
5164 BranchInst *BI2 = dyn_cast<BranchInst>(I); in TryToMergeLandingPad()
5202 bool SimplifyCFGOpt::SimplifyUncondBranch(BranchInst *BI, in SimplifyUncondBranch()
5262 bool SimplifyCFGOpt::SimplifyCondBranch(BranchInst *BI, IRBuilder<> &Builder) { in SimplifyCondBranch()
5301 auto *PBI = dyn_cast_or_null<BranchInst>(Dom->getTerminator()); in SimplifyCondBranch()
5363 if (BranchInst *PBI = dyn_cast<BranchInst>((*PI)->getTerminator())) in SimplifyCondBranch()
5371 if (BranchInst *PBI = dyn_cast<BranchInst>(PrevBB->getTerminator())) in SimplifyCondBranch()
5434 if (BranchInst *BI = dyn_cast<BranchInst>(T)) { in removeUndefIntroducingPredecessor()
5493 if (BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator())) { in run()