[llvm] 08f72fe - [TableGen] Remove unnecessary use of MVT::SimpleTy. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 23 00:14:56 PST 2025


Author: Craig Topper
Date: 2025-11-23T00:13:36-08:00
New Revision: 08f72fe77a53762c94dc04f9fc7c6e038141aa55

URL: https://github.com/llvm/llvm-project/commit/08f72fe77a53762c94dc04f9fc7c6e038141aa55
DIFF: https://github.com/llvm/llvm-project/commit/08f72fe77a53762c94dc04f9fc7c6e038141aa55.diff

LOG: [TableGen] Remove unnecessary use of MVT::SimpleTy. NFC

This was missed in 0ef522ff68fff4266bf85e7b7a507a16a8fd34ee

Added: 
    

Modified: 
    llvm/utils/TableGen/Common/CodeGenDAGPatterns.h

Removed: 
    


################################################################################
diff  --git a/llvm/utils/TableGen/Common/CodeGenDAGPatterns.h b/llvm/utils/TableGen/Common/CodeGenDAGPatterns.h
index bfd737ee928a8..2cd7ec1521feb 100644
--- a/llvm/utils/TableGen/Common/CodeGenDAGPatterns.h
+++ b/llvm/utils/TableGen/Common/CodeGenDAGPatterns.h
@@ -86,7 +86,7 @@ struct MachineValueTypeSet {
   }
   std::pair<MachineValueTypeSet &, bool> insert(MVT T) {
     assert(T.SimpleTy < Capacity && "Capacity needs to be enlarged");
-    bool V = count(T.SimpleTy);
+    bool V = count(T);
     Words[T.SimpleTy / WordWidth] |= WordType(1) << (T.SimpleTy % WordWidth);
     return {*this, V};
   }


        


More information about the llvm-commits mailing list