mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-25 21:46:50 +00:00
Implement Transforms/TailCallElim/return-undef.ll, a trivial case
that has been sitting in my inbox since May 18. :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24194 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3e2245bd34
commit
3b5f45042b
@ -342,6 +342,7 @@ bool TailCallElim::ProcessReturningBlock(ReturnInst *Ret, BasicBlock *&OldEntry,
|
||||
// constant, return the value returned by the tail call, or that are being
|
||||
// accumulator recursion variable eliminated.
|
||||
if (Ret->getNumOperands() != 0 && Ret->getReturnValue() != CI &&
|
||||
!isa<UndefValue>(Ret->getReturnValue()) &&
|
||||
AccumulatorRecursionEliminationInitVal == 0 &&
|
||||
!getCommonReturnValue(Ret, CI))
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user