@@ -207,11 +207,10 @@ struct UniformQuantizedPerAxisTypeStorage : public QuantizedTypeStorage {
207207 unsigned getHashValue () const {
208208 int64_t *scalesCast = llvm::bit_cast<int64_t *>(scales.data ());
209209 ArrayRef<int64_t > scalesBits (scalesCast, scales.size ());
210- return llvm::hash_combine (
211- flags, storageType, expressedType,
212- llvm::hash_combine_range (scalesBits.begin (), scalesBits.end ()),
213- llvm::hash_combine_range (zeroPoints.begin (), zeroPoints.end ()),
214- storageTypeMin, storageTypeMax);
210+ return llvm::hash_combine (flags, storageType, expressedType,
211+ llvm::hash_combine_range (scalesBits),
212+ llvm::hash_combine_range (zeroPoints),
213+ storageTypeMin, storageTypeMax);
215214 }
216215 };
217216
@@ -318,11 +317,9 @@ struct UniformQuantizedSubChannelTypeStorage : public QuantizedTypeStorage {
318317 }
319318
320319 // Hash the quantized dimensions and block sizes.
321- hash = llvm::hash_combine (
322- hash,
323- llvm::hash_combine_range (quantizedDimensions.begin (),
324- quantizedDimensions.end ()),
325- llvm::hash_combine_range (blockSizes.begin (), blockSizes.end ()));
320+ hash = llvm::hash_combine (hash,
321+ llvm::hash_combine_range (quantizedDimensions),
322+ llvm::hash_combine_range (blockSizes));
326323
327324 return hash;
328325 }
0 commit comments