[llvm] [X86] X86FixupVectorConstants - shrink vector load to movsd/movsd/movd/movq 'zero upper' instructions (PR #79000)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 23 05:28:53 PST 2024
================
@@ -50,7 +50,7 @@ define i32 @PR63108() {
; AVX1-NEXT: vbroadcastss {{.*#+}} xmm0 = [251,223,0,0,251,223,0,0,251,223,0,0,251,223,0,0]
; AVX1-NEXT: jmp .LBB0_5
; AVX1-NEXT: .LBB0_2: # %vector.body.preheader
-; AVX1-NEXT: vmovaps {{.*#+}} xmm0 = [57339,0,0,0]
+; AVX1-NEXT: vmovss {{.*#+}} xmm0 = [251,223,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
----------------
phoebewang wrote:
I don't see FP domain instructions except for `vbroadcastss`, is it because they are using the same `xmm0` register?
Then I took a further look at `vbroadcastss`, and found maybe we should replace it with a `vmoss/vmod` too.
https://github.com/llvm/llvm-project/pull/79000
More information about the llvm-commits
mailing list