[llvm] [X86] Improve optmasks handling for AVX10.1-256 (PR #73074)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 21 22:16:09 PST 2023


================
@@ -3773,7 +3774,8 @@ static unsigned getLoadStoreRegOpcode(Register Reg,
     if (X86::RFP64RegClass.hasSubClassEq(RC))
       return Load ? X86::LD_Fp64m : X86::ST_Fp64m;
     if (X86::VK64RegClass.hasSubClassEq(RC)) {
-      assert(STI.hasBWI() && "KMOVQ requires BWI");
+      assert(STI.hasBWI() && STI.hasEVEX512() &&
+             "KMOVQ requires BWI with 512-bit vectors");
----------------
phoebewang wrote:

with EVEX512

https://github.com/llvm/llvm-project/pull/73074


More information about the llvm-commits mailing list