[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.
This commit is contained in:
Fangrui Song 2026-06-06 11:18:12 -07:00 committed by GitHub
parent eafc7b6722
commit 6b5883b38e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -322,13 +322,6 @@ public:
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()));