+Gohman<div><div><br></div><div>Cameron,</div><div><br></div><div>A nested callseq is currently an invalid DAG representation, and results in a crash or an infinite loop later in compilation. I don't see how it could ever result in a valid program.</div>
<div><br></div><div>If somebody intends to improve ARM performance by making a nested call to memcpy possible, that is great. But in the meantime, these memcpys really need to be inlined so that the compiler works at all.</div>
<div><br></div><div>- David</div><div><br></div><div><br><div class="gmail_quote">On Sun, Sep 25, 2011 at 3:46 AM, Cameron Zwarich <span dir="ltr"><<a href="mailto:zwarich@apple.com">zwarich@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">The fact that the memcpy is not always inlined is an explicit design decision of the ARM byval implementation. Think of the case of copying a gigantic struct.<br>

<br>
The nested legalization of calls it required is unfortunate and has bugs, but I believe Dan Gohman has been cleaning it up a bit.<br>
<br>
Unless I am just really out of the loop (which is possible) this is not the right fix.<br>
<br>
Sent from my iPhone<br>
<div><div class="h5"><br>
On Sep 25, 2011, at 1:34 AM, David Meyer <<a href="mailto:pdox@google.com">pdox@google.com</a>> wrote:<br>
<br>
> Fixes <a href="http://llvm.org/bugs/show_bug.cgi?id=11004" target="_blank">http://llvm.org/bugs/show_bug.cgi?id=11004</a><br>
><br>
> New test included. Seeking approval to commit.<br>
><br>
> Thanks,<br>
> pdox<br>
</div></div>> <arm_byval.patch><br>
> _______________________________________________<br>
> llvm-commits mailing list<br>
> <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div></div>