[PATCH] D81232: Correctly report modified status for TailRecursionElimination
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 5 01:03:45 PDT 2020
serge-sans-paille created this revision.
serge-sans-paille added reviewers: jdoerfert, nikic, foad.
Herald added subscribers: llvm-commits, laytonio, hiraditya.
Herald added a project: LLVM.
Related to https://reviews.llvm.org/D80916
https://reviews.llvm.org/D81232
Files:
llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
Index: llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
+++ llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
@@ -862,7 +862,7 @@
// 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81232.268685.patch
Type: text/x-patch
Size: 637 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200605/ab67bdd6/attachment-0001.bin>
More information about the llvm-commits
mailing list