[llvm] 74e5418 - [X86] Fix typo in assertion message. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 28 06:21:01 PST 2024


Author: Simon Pilgrim
Date: 2024-01-28T14:11:36Z
New Revision: 74e5418ae6630d298982f8014c184b01bebcf455

URL: https://github.com/llvm/llvm-project/commit/74e5418ae6630d298982f8014c184b01bebcf455
DIFF: https://github.com/llvm/llvm-project/commit/74e5418ae6630d298982f8014c184b01bebcf455.diff

LOG: [X86] Fix typo in assertion message. NFC.

We are NOT expecting undefs in AND/ANDNP faux shuffle masks

Added: 
    

Modified: 
    llvm/lib/Target/X86/X86ISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 77bb87d1d35d1c6..1be8d4699e99bb8 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -5725,7 +5725,7 @@ static bool getFauxShuffleMask(SDValue N, const APInt &DemandedElts,
       return false;
     // We can't assume an undef src element gives an undef dst - the other src
     // might be zero.
-    assert(UndefElts.isZero() && "Expected UNDEF element in AND/ANDNP mask");
+    assert(UndefElts.isZero() && "Unexpected UNDEF element in AND/ANDNP mask");
     for (int i = 0, e = (int)EltBits.size(); i != e; ++i) {
       const APInt &ByteBits = EltBits[i];
       if (ByteBits != 0 && ByteBits != 255)


        


More information about the llvm-commits mailing list