[PATCH] D108738: [SelectionDAG] Optimize bitreverse expansion to minimize the number of mask constants.
Pengfei Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 25 19:43:54 PDT 2021
pengfei added inline comments.
================
Comment at: llvm/test/CodeGen/X86/vector-bitreverse.ll:690
; SSE2-NEXT: por %xmm1, %xmm0
-; SSE2-NEXT: movdqa {{.*#+}} xmm1 = [51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51]
-; SSE2-NEXT: pand %xmm0, %xmm1
-; SSE2-NEXT: psllw $2, %xmm1
-; SSE2-NEXT: pand {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0
-; SSE2-NEXT: psrlw $2, %xmm0
+; SSE2-NEXT: movdqa %xmm0, %xmm1
+; SSE2-NEXT: psrlw $2, %xmm1
----------------
pengfei wrote:
> Seems we have 2 extra move here. Is this a regression?
Seems we reduce the constant load :)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108738/new/
https://reviews.llvm.org/D108738
More information about the llvm-commits
mailing list