PATCH: Inliner: Don't generate memcpy calls for byval readonly parameters

Chandler Carruth chandlerc at google.com
Tue Oct 22 15:11:14 PDT 2013


This looks fine, but Nick should confirm that it is the correct
implementation of byval & readonly.


On Tue, Oct 22, 2013 at 3:07 PM, Tom Stellard <tom at stellard.net> wrote:

> Hi,
>
> The function inliner avoids generating memcpy calls when the parameter
> is marked byval and the function is marked readonly.  The attached
> patch extends this behavior to the case where the function parameter is
> readonly, but the function isn't.
>
> Please review.
>
> Thanks,
> Tom
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131022/2d5b4ab0/attachment.html>


More information about the llvm-commits mailing list