Lines Matching refs:OldEntry

108                                     BasicBlock *&OldEntry,
113 ReturnInst *Ret, BasicBlock *&OldEntry,
117 bool ProcessReturningBlock(ReturnInst *RI, BasicBlock *&OldEntry,
394 BasicBlock *OldEntry = nullptr; in runTRE() local
413 bool Change = ProcessReturningBlock(Ret, OldEntry, TailCallsAreMarkedTail, in runTRE()
416 Change = FoldReturnAndProcessPred(BB, Ret, OldEntry, in runTRE()
621 BasicBlock *&OldEntry, in EliminateRecursiveTailCall() argument
688 if (!OldEntry) { in EliminateRecursiveTailCall()
689 OldEntry = &F->getEntryBlock(); in EliminateRecursiveTailCall()
690 BasicBlock *NewEntry = BasicBlock::Create(F->getContext(), "", F, OldEntry); in EliminateRecursiveTailCall()
691 NewEntry->takeName(OldEntry); in EliminateRecursiveTailCall()
692 OldEntry->setName("tailrecurse"); in EliminateRecursiveTailCall()
693 BranchInst::Create(OldEntry, NewEntry); in EliminateRecursiveTailCall()
700 for (BasicBlock::iterator OEBI = OldEntry->begin(), E = OldEntry->end(), in EliminateRecursiveTailCall()
710 Instruction *InsertPos = &OldEntry->front(); in EliminateRecursiveTailCall()
744 pred_iterator PB = pred_begin(OldEntry), PE = pred_end(OldEntry); in EliminateRecursiveTailCall()
747 std::distance(PB, PE) + 1, "accumulator.tr", &OldEntry->front()); in EliminateRecursiveTailCall()
789 BranchInst *NewBI = BranchInst::Create(OldEntry, Ret); in EliminateRecursiveTailCall()
799 ReturnInst *Ret, BasicBlock *&OldEntry, in FoldReturnAndProcessPred() argument
833 EliminateRecursiveTailCall(CI, RI, OldEntry, TailCallsAreMarkedTail, in FoldReturnAndProcessPred()
845 TailCallElim::ProcessReturningBlock(ReturnInst *Ret, BasicBlock *&OldEntry, in ProcessReturningBlock() argument
853 return EliminateRecursiveTailCall(CI, Ret, OldEntry, TailCallsAreMarkedTail, in ProcessReturningBlock()