[llvm] [X86] Improve optmasks handling for AVX10.1-256 (PR #73074)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 22 07:36:52 PST 2023
================
@@ -3526,7 +3526,7 @@ static unsigned CopyToFromAsymmetricReg(unsigned DestReg, unsigned SrcReg,
// All KMASK RegClasses hold the same k registers, can be tested against anyone.
if (X86::VK16RegClass.contains(SrcReg)) {
if (X86::GR64RegClass.contains(DestReg)) {
- assert(Subtarget.hasBWI());
+ assert(Subtarget.hasBWI() && Subtarget.hasEVEX512());
----------------
RKSimon wrote:
(style) If you're updating the assert, add an assertion message to match coding guidelines
https://github.com/llvm/llvm-project/pull/73074
More information about the llvm-commits
mailing list