[PATCH] D132978: [IRTranslator] Using ZExt for extractelement indices.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 27 05:30:01 PDT 2022


RKSimon added inline comments.


================
Comment at: llvm/test/CodeGen/X86/var-permute-128.ll:132
 ; SSE3:       # %bb.0:
-; SSE3-NEXT:    movd %xmm1, %r8d
+; SSE3-NEXT:    pextrw $0, %xmm1, %r8d
 ; SSE3-NEXT:    pextrw $1, %xmm1, %r9d
----------------
These are mildly annoying, on some targets movd is notably quicker than pextr* - I think we're just missing a SimplifyDemandedBits handler though.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132978/new/

https://reviews.llvm.org/D132978



More information about the llvm-commits mailing list