[PATCH] D19228: [X86][AVX2] Prefer VPERMQ/VPERMPD over VINSERTI128/VINSERTF128 for unary shuffles

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 18 14:04:07 PDT 2016


spatel added inline comments.

================
Comment at: test/CodeGen/X86/avx-vperm2x128.ll:65-66
@@ +64,4 @@
+; AVX1:       ## BB#0: ## %entry
+; AVX1-NEXT:    vmovaps (%rdi), %ymm0
+; AVX1-NEXT:    vinsertf128 $1, %xmm0, %ymm0, %ymm0
+; AVX1-NEXT:    retq
----------------
So this one could be 'vperm2f128' with a memop, couldn't it? Any idea why that didn't happen?


Repository:
  rL LLVM

http://reviews.llvm.org/D19228





More information about the llvm-commits mailing list