Skip to content

Commit

Permalink
Correctly report modified status for TailRecursionElimination
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D81232
  • Loading branch information
serge-sans-paille committed Jun 5, 2020
1 parent 1086d77 commit f987cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ bool TailRecursionEliminator::eliminate(Function &F,
// If this function is a varargs function, we won't be able to PHI the args
// right, so don't even try to convert it...
if (F.getFunctionType()->isVarArg())
return false;
return MadeChange;

// If false, we cannot perform TRE on tail calls marked with the 'tail'
// attribute, because doing so would cause the stack size to increase (real
Expand Down

0 comments on commit f987cce

Please sign in to comment.