[PATCH] D53306: [X86] Stop promoting integer loads to vXi64

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 21 03:41:25 PDT 2018


RKSimon added inline comments.


================
Comment at: test/CodeGen/X86/vector-trunc.ll:1926
 ; AVX2-SLOW:       # %bb.0:
-; AVX2-SLOW-NEXT:    vpunpckhwd {{.*#+}} xmm0 = xmm0[4,4,5,5,6,6,7,7]
+; AVX2-SLOW-NEXT:    vpshufb {{.*#+}} xmm0 = xmm0[0,1,4,5,8,9,12,13,8,9,12,13,12,13,14,15,16,17,20,21,24,25,28,29,24,25,28,29,28,29,30,31]
+; AVX2-SLOW-NEXT:    vpshuflw {{.*#+}} xmm0 = xmm0[2,2,2,3,4,5,6,7]
----------------
I think you're going to need to add a similar size test to the get constant code in X86MCInstLower.cpp 


Repository:
  rL LLVM

https://reviews.llvm.org/D53306





More information about the llvm-commits mailing list