aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-04-27 12:31:28 -0700
committerGitHub <noreply@github.com>2025-04-27 12:31:28 -0700
commit1f56716a7eb42be67b9e42d11d95b622fdb605e5 (patch)
tree1c2c9f1ac7db0af387b1994dc614941c908832ea /llvm/lib/Transforms/Utils/Local.cpp
parent2e934170b0b998e95fae3a47268293d7896f5bab (diff)
downloadllvm-1f56716a7eb42be67b9e42d11d95b622fdb605e5.zip
llvm-1f56716a7eb42be67b9e42d11d95b622fdb605e5.tar.gz
llvm-1f56716a7eb42be67b9e42d11d95b622fdb605e5.tar.bz2
[llvm] Use hash_combine_range with ranges (NFC) (#137530)
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index f914d596..4140112 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -1445,9 +1445,9 @@ EliminateDuplicatePHINodesSetBasedImpl(BasicBlock *BB,
// Compute a hash value on the operands. Instcombine will likely have
// sorted them, which helps expose duplicates, but we have to check all
// the operands to be safe in case instcombine hasn't run.
- return static_cast<unsigned>(hash_combine(
- hash_combine_range(PN->value_op_begin(), PN->value_op_end()),
- hash_combine_range(PN->block_begin(), PN->block_end())));
+ return static_cast<unsigned>(
+ hash_combine(hash_combine_range(PN->operand_values()),
+ hash_combine_range(PN->blocks())));
}
static unsigned getHashValue(PHINode *PN) {