[llvm] [X86][SelectionDAG] Fix the Gather's base and index by modifying the Scale value (PR #134979)
Rohit Aggarwal via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 22 08:13:13 PDT 2025
================
@@ -4930,49 +4874,22 @@ define <16 x float> @test_gather_structpt_16f32_mask_index_offset(ptr %x, ptr %a
; X86-KNL-NEXT: vptestmd %zmm0, %zmm0, %k1
; X86-KNL-NEXT: movl {{[0-9]+}}(%esp), %eax
; X86-KNL-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X86-KNL-NEXT: vpslld $4, (%ecx), %zmm0
-; X86-KNL-NEXT: vgatherdps 4(%eax,%zmm0), %zmm1 {%k1}
+; X86-KNL-NEXT: vmovdqu64 (%ecx), %zmm0
----------------
rohitaggarwal007 wrote:
@RKSimon, I have update the patch to handle the use cases.
Please have a look.
Thanks
https://github.com/llvm/llvm-project/pull/134979
More information about the llvm-commits
mailing list