[PATCH] D78259: [TailCallElim] Add handling of readonly functions

Layton Kifer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 15 18:14:27 PDT 2020


laytonio created this revision.
laytonio added reviewers: nlewycky, lattner.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
laytonio updated this revision to Diff 257919.
laytonio added a comment.

noticed minor typo in the regression test


We can perform accumulator recursion on values loaded from memory, if we verify that the memory isn't modified before the function would have returned.


https://reviews.llvm.org/D78259

Files:
  llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
  llvm/test/Transforms/TailCallElim/accum_recursion.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78259.257919.patch
Type: text/x-patch
Size: 4852 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200416/73b769fc/attachment.bin>


More information about the llvm-commits mailing list