[PATCH] D38714: [AVX512] Don't mark EXTLOAD as legal with AVX512. Continue using custom lowering.
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 10 04:19:51 PDT 2017
RKSimon added inline comments.
================
Comment at: test/CodeGen/X86/avx2-vbroadcast.ll:269
; X64-AVX512VL: ## BB#0:
-; X64-AVX512VL-NEXT: vpmovzxwd {{.*#+}} xmm0 = mem[0],zero,mem[1],zero,mem[2],zero,mem[3],zero
-; X64-AVX512VL-NEXT: vpshuflw {{.*#+}} xmm0 = xmm0[0,2,2,3,4,5,6,7]
-; X64-AVX512VL-NEXT: vpshufhw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,6,6,7]
-; X64-AVX512VL-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
-; X64-AVX512VL-NEXT: vpbroadcastq %xmm0, %ymm0
+; X64-AVX512VL-NEXT: vbroadcastsd (%rdi), %ymm0
; X64-AVX512VL-NEXT: retq
----------------
How come this managed to fold the load but AVX2 didn't?
https://reviews.llvm.org/D38714
More information about the llvm-commits
mailing list