[llvm] 4148158 - [RegBankInfo] Add brackets around || in assert. NFC

David Green via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 21 04:58:16 PST 2023


Author: David Green
Date: 2023-11-21T12:58:09Z
New Revision: 414815872434f6b4f7479a2732e87d221eefb01d

URL: https://github.com/llvm/llvm-project/commit/414815872434f6b4f7479a2732e87d221eefb01d
DIFF: https://github.com/llvm/llvm-project/commit/414815872434f6b4f7479a2732e87d221eefb01d.diff

LOG: [RegBankInfo] Add brackets around || in assert. NFC

Added: 
    

Modified: 
    llvm/lib/CodeGen/RegisterBankInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/RegisterBankInfo.cpp b/llvm/lib/CodeGen/RegisterBankInfo.cpp
index 6a96bb40f56aed9..5548430d1b0ae88 100644
--- a/llvm/lib/CodeGen/RegisterBankInfo.cpp
+++ b/llvm/lib/CodeGen/RegisterBankInfo.cpp
@@ -565,9 +565,9 @@ bool RegisterBankInfo::ValueMapping::verify(const RegisterBankInfo &RBI,
     OrigValueBitWidth =
         std::max(OrigValueBitWidth, PartMap.getHighBitIdx() + 1);
   }
-  assert(MeaningfulBitWidth.isScalable() ||
-         OrigValueBitWidth >= MeaningfulBitWidth &&
-             "Meaningful bits not covered by the mapping");
+  assert((MeaningfulBitWidth.isScalable() ||
+          OrigValueBitWidth >= MeaningfulBitWidth) &&
+         "Meaningful bits not covered by the mapping");
   APInt ValueMask(OrigValueBitWidth, 0);
   for (const RegisterBankInfo::PartialMapping &PartMap : *this) {
     // Check that the union of the partial mappings covers the whole value,


        


More information about the llvm-commits mailing list