[PATCH] D81232: Correctly report modified status for TailRecursionElimination

serge via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 5 07:13:34 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGf987cceb1342: Correctly report modified status for TailRecursionElimination (authored by serge-sans-paille).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81232/new/

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
@@ -818,7 +818,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.268790.patch
Type: text/x-patch
Size: 637 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200605/c9ffffa1/attachment.bin>


More information about the llvm-commits mailing list