[PATCH] D85614: [TRE] Reland: allow TRE for non-capturing calls.

Alexey Lapshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 12 06:19:20 PDT 2020


avl updated this revision to Diff 297566.
avl added a comment.

Implemented that algorithm: First, create a temporary alloca 
corresponding to each byval argument. Then, copy each byval
argument to the call to its temporary alloca. Finally, copy
each byval argument to the call from the temporaries to the
memory originally allocated for the function's arguments.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D85614

Files:
  llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
  llvm/test/Transforms/TailCallElim/basic.ll
  llvm/test/Transforms/TailCallElim/tre-byval-parameter-2.ll
  llvm/test/Transforms/TailCallElim/tre-byval-parameter.ll
  llvm/test/Transforms/TailCallElim/tre-multiple-exits.ll
  llvm/test/Transforms/TailCallElim/tre-noncapturing-alloca-calls.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85614.297566.patch
Type: text/x-patch
Size: 36543 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201012/f431e82d/attachment.bin>


More information about the llvm-commits mailing list