[PATCH] D79660: [TRE] Allow elimination when the returned value is non-constant

Layton Kifer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 8 19:53:06 PDT 2020


laytonio created this revision.
laytonio added reviewers: nlewycky, lattner, Carrot, efriedma.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

Currently we can only eliminate call return pairs that either return the result of the call or a dynamic constant. This patch removes that limitation.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79660

Files:
  llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
  llvm/test/Transforms/TailCallElim/2010-06-26-MultipleReturnValues.ll
  llvm/test/Transforms/TailCallElim/basic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79660.262988.patch
Type: text/x-patch
Size: 11137 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200509/f454dc6a/attachment.bin>


More information about the llvm-commits mailing list