[PATCH] D87976: Support the division-by-constant strength reduction for more integer types
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 26 20:59:50 PDT 2020
craig.topper added inline comments.
================
Comment at: llvm/test/CodeGen/X86/vshli-simplify-demanded-bits.ll:11
; CHECK: # %bb.0: # %bb
-; CHECK-NEXT: movdqa {{.*#+}} xmm0 = [2863311531,2863311531,2863311531,2863311531]
-; CHECK-NEXT: pshufd {{.*#+}} xmm3 = xmm1[1,1,3,3]
-; CHECK-NEXT: pmuludq %xmm0, %xmm1
-; CHECK-NEXT: pshufd {{.*#+}} xmm4 = xmm1[1,3,2,3]
-; CHECK-NEXT: pmuludq %xmm0, %xmm3
-; CHECK-NEXT: pshufd {{.*#+}} xmm1 = xmm3[1,3,2,3]
-; CHECK-NEXT: punpckldq {{.*#+}} xmm4 = xmm4[0],xmm1[0],xmm4[1],xmm1[1]
-; CHECK-NEXT: pshufd {{.*#+}} xmm1 = xmm2[1,1,3,3]
-; CHECK-NEXT: pmuludq %xmm0, %xmm2
-; CHECK-NEXT: pshufd {{.*#+}} xmm2 = xmm2[1,3,2,3]
-; CHECK-NEXT: pmuludq %xmm0, %xmm1
-; CHECK-NEXT: pshufd {{.*#+}} xmm0 = xmm1[1,3,2,3]
-; CHECK-NEXT: punpckldq {{.*#+}} xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
+; CHECK-NEXT: pshufd {{.*#+}} xmm3 = xmm1[2,3,3,3]
+; CHECK-NEXT: movdqa {{.*#+}} xmm4 = [2863311531,2863311531]
----------------
craig.topper wrote:
> Why did the amount of code increase here? This is a legal type so why was it affected?
Oh I misread the arguments. One is a legal type but the other isn't.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87976/new/
https://reviews.llvm.org/D87976
More information about the llvm-commits
mailing list