[PATCH] D56864: [x86] vectorize cast ops in lowering to avoid register file transfers
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 17 09:37:43 PST 2019
spatel marked an inline comment as done.
spatel added inline comments.
================
Comment at: test/CodeGen/X86/vec_int_to_fp.ll:5685-5686
; SSE2: # %bb.0:
; SSE2-NEXT: pshufd {{.*#+}} xmm0 = xmm0[3,1,2,3]
-; SSE2-NEXT: movd %xmm0, %eax
-; SSE2-NEXT: xorps %xmm0, %xmm0
-; SSE2-NEXT: cvtsi2ssl %eax, %xmm0
+; SSE2-NEXT: cvtdq2ps %xmm0, %xmm0
; SSE2-NEXT: retq
----------------
Not sure yet how this case became a "shuffle first and extract from 0 element", but we probably want to do that more generally to enable this transform more often.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56864/new/
https://reviews.llvm.org/D56864
More information about the llvm-commits
mailing list