[llvm] [X86] Fold VPMOV*2M + masked VMOV* into VBLENDV* (PR #204723)
Qihan Cai via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 25 05:51:38 PDT 2026
================
@@ -221,9 +222,87 @@ static bool isKMovNarrowing(unsigned VPMOVOpc, unsigned KMOVOpc) {
return KMOVSize < VPMOVBits;
}
-// Try to compress VPMOV*2M + KMOV chain patterns:
-// vpmov*2m %xmm0, %k0 -> (erase this)
-// kmov* %k0, %eax -> vmovmskp* %xmm0, %eax
+static unsigned getBlendVOpc(unsigned VPMOVOpc, unsigned UseOpc) {
----------------
realqhc wrote:
Sorry, I'm a bit confused about this line. I wonder if my current version is what you mentioned. Please correct me if I'm wrong.
https://github.com/llvm/llvm-project/pull/204723
More information about the llvm-commits
mailing list