[llvm] 5c30a5c - [ExecutionEngine] Call hash_combine_range with a range (NFC) (#164755)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 23 07:08:51 PDT 2025
Author: Kazu Hirata
Date: 2025-10-23T07:08:47-07:00
New Revision: 5c30a5c7b8d9cb885cf636c656d2849881a61532
URL: https://github.com/llvm/llvm-project/commit/5c30a5c7b8d9cb885cf636c656d2849881a61532
DIFF: https://github.com/llvm/llvm-project/commit/5c30a5c7b8d9cb885cf636c656d2849881a61532.diff
LOG: [ExecutionEngine] Call hash_combine_range with a range (NFC) (#164755)
We can pass a range directly to hash_combine_range these days.
Added:
Modified:
llvm/include/llvm/ExecutionEngine/Orc/WaitingOnGraph.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/WaitingOnGraph.h b/llvm/include/llvm/ExecutionEngine/Orc/WaitingOnGraph.h
index 45834f14e9bdf..d8506ce830bdc 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/WaitingOnGraph.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/WaitingOnGraph.h
@@ -186,9 +186,7 @@ template <typename ContainerIdT, typename ElementIdT> class WaitingOnGraph {
SmallVector<ElementId> SortedElems(ContainerElems.begin(),
ContainerElems.end());
llvm::sort(SortedElems);
- Hash = hash_combine(
- Hash, Container,
- hash_combine_range(SortedElems.begin(), SortedElems.end()));
+ Hash = hash_combine(Hash, Container, hash_combine_range(SortedElems));
}
return Hash;
}
More information about the llvm-commits
mailing list