<div dir="ltr">On 22 October 2013 15:11, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This looks fine, but Nick should confirm that it is the correct implementation of byval & readonly.</div>

</blockquote><div><br></div><div>I don't deeply understand 'byval', but this patch looks like it can't possibly be wrong.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5"><div class="gmail_extra">On Tue, Oct 22, 2013 at 3:07 PM, Tom Stellard <span dir="ltr"><<a href="mailto:tom@stellard.net" target="_blank">tom@stellard.net</a>></span> wrote:<br><div class="gmail_quote">


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
The function inliner avoids generating memcpy calls when the parameter<br>
is marked byval and the function is marked readonly.  The attached<br>
patch extends this behavior to the case where the function parameter is<br>
readonly, but the function isn't.<br>
<br>
Please review.<br>
<br>
Thanks,<br>
Tom<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>