Lines Matching refs:ReturnInst
99 bool EliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret,
105 ReturnInst *Ret, BasicBlock *&OldEntry,
109 bool ProcessReturningBlock(ReturnInst *RI, BasicBlock *&OldEntry,
162 if (isa<ReturnInst>(U->getUser()))
212 if (ReturnInst *Ret = dyn_cast<ReturnInst>(BB->getTerminator())) {
306 static bool isDynamicConstant(Value *V, CallInst *CI, ReturnInst *RI) {
341 static Value *getCommonReturnValue(ReturnInst *IgnoreRI, CallInst *CI) {
346 ReturnInst *RI = dyn_cast<ReturnInst>(BBI->getTerminator());
380 if (!I->hasOneUse() || !isa<ReturnInst>(I->use_back()))
386 return getCommonReturnValue(cast<ReturnInst>(I->use_back()), CI);
447 bool TailCallElim::EliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret,
607 if (ReturnInst *RI = dyn_cast<ReturnInst>(BBI->getTerminator()))
624 ReturnInst *Ret, BasicBlock *&OldEntry,
661 TailCallElim::ProcessReturningBlock(ReturnInst *Ret, BasicBlock *&OldEntry,