Lines Matching refs:OldBranch
264 BranchInst *OldBranch, Instruction *TI);
918 BranchInst *OldBranch, in emitPreheaderBranchOnCondition() argument
920 assert(OldBranch->isUnconditional() && "Preheader is not split correctly"); in emitPreheaderBranchOnCondition()
928 BranchVal = new ICmpInst(OldBranch, ICmpInst::ICMP_EQ, LIC, Val); in emitPreheaderBranchOnCondition()
937 auto *OldBranchSucc = OldBranch->getSuccessor(0); in emitPreheaderBranchOnCondition()
938 auto *OldBranchParent = OldBranch->getParent(); in emitPreheaderBranchOnCondition()
942 IRBuilder<>(OldBranch).CreateCondBr(BranchVal, TrueDest, FalseDest, TI); in emitPreheaderBranchOnCondition()
948 OldBranch->removeFromParent(); in emitPreheaderBranchOnCondition()
1014 auto *OldBranch = dyn_cast<BranchInst>(LoopPreheader->getTerminator()); in unswitchTrivialCondition() local
1015 assert(OldBranch && "Failed to split the preheader"); in unswitchTrivialCondition()
1016 emitPreheaderBranchOnCondition(Cond, Val, NewExit, NewPH, OldBranch, TI); in unswitchTrivialCondition()
1020 delete OldBranch; in unswitchTrivialCondition()