[polly] 6b5883b - [Polly] Remove unused DenseMapInfo::getEmptyKey (#201992)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 6 11:18:16 PDT 2026
Author: Fangrui Song
Date: 2026-06-06T11:18:12-07:00
New Revision: 6b5883b38e158ce4659859ffd78f6ad2869979c1
URL: https://github.com/llvm/llvm-project/commit/6b5883b38e158ce4659859ffd78f6ad2869979c1
DIFF: https://github.com/llvm/llvm-project/commit/6b5883b38e158ce4659859ffd78f6ad2869979c1.diff
LOG: [Polly] Remove unused DenseMapInfo::getEmptyKey (#201992)
After #201281 DenseMapInfo<T>::getEmptyKey() is no longer used by
DenseMap. Remove the unused getEmptyKey definitions and dead sentinel
uses.
Added:
Modified:
polly/include/polly/Support/VirtualInstruction.h
Removed:
################################################################################
diff --git a/polly/include/polly/Support/VirtualInstruction.h b/polly/include/polly/Support/VirtualInstruction.h
index a9792840bf4f7..23fd86bc73c58 100644
--- a/polly/include/polly/Support/VirtualInstruction.h
+++ b/polly/include/polly/Support/VirtualInstruction.h
@@ -322,13 +322,6 @@ template <> struct DenseMapInfo<polly::VirtualInstruction> {
RHS.getInstruction());
}
- static polly::VirtualInstruction getEmptyKey() {
- polly::VirtualInstruction EmptyKey;
- EmptyKey.Stmt = DenseMapInfo<polly::ScopStmt *>::getEmptyKey();
- EmptyKey.Inst = DenseMapInfo<Instruction *>::getEmptyKey();
- return EmptyKey;
- }
-
static unsigned getHashValue(polly::VirtualInstruction Val) {
return DenseMapInfo<std::pair<polly::ScopStmt *, Instruction *>>::
getHashValue(std::make_pair(Val.getStmt(), Val.getInstruction()));
More information about the llvm-commits
mailing list