Correctly report modified status for TailRecursionElimination

Differential Revision: https://reviews.llvm.org/D81232
This commit is contained in:
serge-sans-paille 2020-06-04 22:24:03 +02:00
parent 1086d777be
commit f987cceb13
1 changed files with 1 additions and 1 deletions

View File

@ -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