<div dir="ltr">Hmm, why does Clang change the return type from from struct to i64?  Set aside whether it is always beneficial to do it or not, it certainly feels like the wrong place to make such a change.<div><br></div><div>David</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 26, 2016 at 10:40 PM, Wei Mi <span dir="ltr"><<a href="mailto:wmi@google.com" target="_blank">wmi@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">wmi added a comment.<br>
<br>
Matt, David and Chandler, thanks for the review.<br>
<br>
I only looked at the code for x86-64, powerpc and aarch64 targets. For those targets, separate stores seemed better. I am not familiar with target like AMDGPU. I guess wider store is generally preferred than multiple narrower stores on AMDGPU? Since it may be undesirable on some targets, I agree it is more appropriate to implement it in SDAG pass. I will update the patch.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D22840" rel="noreferrer" target="_blank">https://reviews.llvm.org/D22840</a><br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div>