From 6b5883b38e158ce4659859ffd78f6ad2869979c1 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 6 Jun 2026 11:18:12 -0700 Subject: [PATCH] [Polly] Remove unused DenseMapInfo::getEmptyKey (#201992) After #201281 DenseMapInfo::getEmptyKey() is no longer used by DenseMap. Remove the unused getEmptyKey definitions and dead sentinel uses. --- polly/include/polly/Support/VirtualInstruction.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/polly/include/polly/Support/VirtualInstruction.h b/polly/include/polly/Support/VirtualInstruction.h index a9792840bf4f..23fd86bc73c5 100644 --- a/polly/include/polly/Support/VirtualInstruction.h +++ b/polly/include/polly/Support/VirtualInstruction.h @@ -322,13 +322,6 @@ public: RHS.getInstruction()); } - static polly::VirtualInstruction getEmptyKey() { - polly::VirtualInstruction EmptyKey; - EmptyKey.Stmt = DenseMapInfo::getEmptyKey(); - EmptyKey.Inst = DenseMapInfo::getEmptyKey(); - return EmptyKey; - } - static unsigned getHashValue(polly::VirtualInstruction Val) { return DenseMapInfo>:: getHashValue(std::make_pair(Val.getStmt(), Val.getInstruction()));