[Mlir-commits] [mlir] d934d17 - [mlir] Call hash_combine_range with a range (NFC) (#139676)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue May 13 07:12:44 PDT 2025


Author: Kazu Hirata
Date: 2025-05-13T07:12:38-07:00
New Revision: d934d17fb3d570bbc42b8cdaaf5225ca5595efb6

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

LOG: [mlir] Call hash_combine_range with a range (NFC) (#139676)

With #136459, we can now invoke hash_combine_range with a range.

Added: 
    

Modified: 
    mlir/include/mlir/IR/Properties.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/Properties.td b/mlir/include/mlir/IR/Properties.td
index 739df03c7ef2e..15b72969dc92f 100644
--- a/mlir/include/mlir/IR/Properties.td
+++ b/mlir/include/mlir/IR/Properties.td
@@ -554,7 +554,7 @@ class ArrayProp<Property elem = Property<>, string newSummary = ""> :
           return }] # !subst("$_storage", "propStorage", elem.hashProperty) # [{;
         };
         auto mapped = ::llvm::map_range($_storage, getElemHash);
-        return ::llvm::hash_combine_range(mapped.begin(), mapped.end());
+        return ::llvm::hash_combine_range(mapped);
       }()
     }]);
 }


        


More information about the Mlir-commits mailing list