[PATCH] Allow CodeGen to take advantage of functions that always return arguments

Stephen Lin swlin at post.harvard.edu
Fri Apr 19 07:48:49 PDT 2013


> OK, I removed some extraneous changes and updated the patch to be
> based against a mostly non-recursive implementation of sameNoopInput:
>
>     http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130415/172039.html
>
> I've also added the restriction that 'returned' can only be on one
> parameter to allow sameNoopInput to see through 'returned' without
> recursion or extra bookkeeping. There's a minor tack-on bug fix;
> apparently the verifier check that 'nest' is only on one parameter was
> never working correctly...I'm willing to split that off to a separate
> patch if that's preferable though.
>
> The other patch listed is my original e-mail has been committed so is
> no longer an uncommitted dependency.
>
> Stephen

I fixed a small issue (an extraneous recursive call) and rebased against:

     http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130415/172067.html

(although the patch should merge cleanly against the previous version, too.)

Stephen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: return-argument.patch
Type: application/octet-stream
Size: 23834 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130419/d9ea431f/attachment.obj>


More information about the llvm-commits mailing list