<div dir="ltr">Thanks for the review. I'll add a command line option in a separate patch, good idea.<div><br></div><div style>I assume that what you're suggesting is a switch that allows unaligned accesses regardless of target? It would really only make sense to use it on non-Darwin v6, and I guess the option description could say this. How should I name it? GCC has -mstrict-align and -mno-strict-align, and LLVM currently has -arm-strict-align. I could call it -arm-no-strict-align but that's a mouthful. Maybe -arm-allow-unaligned?</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 15, 2013 at 1:25 AM, Renato Golin <span dir="ltr"><<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi JF, </p>
<p dir="ltr">Looks good to me. Maybe adding a command line option to change that would be good, too, but not necessarily in this patch. </p>
<p dir="ltr">Cheers, <br>
Renato </p>
<div class="gmail_quote"><div><div class="h5">On 15 May 2013 03:31, "JF Bastien" <<a href="mailto:jfb@google.com" target="_blank">jfb@google.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
<div dir="ltr">This patch matches GCC behavior: the code used to only allow unaligned load/store on ARM for v6+ Darwin, it will now allow unaligned load/store for v6+ Darwin as well as for v7+ on other targets.<div><br></div>


<div>The distinction is made because v6 doesn't guarantee support (but LLVM assumes that Apple controls hardware+kernel and therefore have conformant v6 CPUs), whereas v7 does provide this guarantee (and Linux behaves sanely).</div>


<div><br></div><div>I originally encountered this discrepancy in FastIsel tests which expect unaligned load/store generation. Overall this should slightly improve performance in most cases because of reduced I$ pressure.</div>


</div>
<br></div></div>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">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>
<br></blockquote></div>
</blockquote></div><br></div>