<div dir="ltr">LGTM</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 20 February 2013 16:58, Nadav Rotem <span dir="ltr"><<a href="mailto:nrotem@apple.com" target="_blank">nrotem@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">LGTM.<br>
<div><div class="h5"><br>
<br>
On Feb 20, 2013, at 5:40 AM, Arnold Schwaighofer <<a href="mailto:aschwaighofer@apple.com">aschwaighofer@apple.com</a>> wrote:<br>
<br>
> Ping.<br>
><br>
><br>
> On Feb 15, 2013, at 4:24 PM, Arnold Schwaighofer <<a href="mailto:aschwaighofer@apple.com">aschwaighofer@apple.com</a>> wrote:<br>
><br>
>> Updated patch, moved the detailed explanation from the .ll test to <a href="http://llvm.org/bugs" target="_blank">llvm.org/bugs</a>. We probably don't want this much text in an regression test.<br>
>><br>
>><br>
>> <0001-DAGCombiner-Fold-pointless-truncate-bitcast-buildvec.patch><br>
>><br>
>> Thanks<br>
>><br>
>> On Feb 15, 2013, at 3:57 PM, Arnold Schwaighofer <<a href="mailto:aschwaighofer@apple.com">aschwaighofer@apple.com</a>> wrote:<br>
>><br>
>>> For example (2xi32) (truncate ((2xi64) bitcast (buildvector i32 a, i32 x, i32 b, i32 y)))<br>
>>> can be folded into a (2xi32) (buildvector i32 a, i32 b).<br>
>>><br>
>>> Such a DAG would cause uneccessary vdup instructions followed by vmovn<br>
>>> instructions on ARM.<br>
>>><br>
>>> We legalize to such a DAG on ARM NEON for a setcc olt, 2xf64, 2xf64. For example, in<br>
>>> the vectorized version of the code below.<br>
>>><br>
>>> double A[N];<br>
>>> double B[N];<br>
>>><br>
>>> void test_double_compare_to_double() {<br>
>>> int i;<br>
>>> for(i=0;i<N;i++)<br>
>>>  A[i] = (double)(A[i] < B[i]);<br>
>>> }<br>
>>><br>
>>> <0001-DAGCombiner-Fold-pointless-truncate-bitcast-buildvec.patch><br>
><br>
><br>
</div></div>> <0001-DAGCombiner-Fold-pointless-truncate-bitcast-buildvec.patch><br>
<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>