From 67ca5dad16e9271e62987f7c563b109a07dc8788 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 19 Aug 2025 09:09:11 -0700 Subject: [PATCH] [polly] Replace SmallSet with SmallPtrSet (NFC) (#154367) This patch replaces SmallSet with SmallPtrSet. Note that SmallSet.h "redirects" SmallSet to SmallPtrSet for pointer element types: template class SmallSet : public SmallPtrSet {}; We only have 10 instances that rely on this "redirection". Since the redirection doesn't improve readability, this patch replaces SmallSet with SmallPtrSet for pointer element types. I'm planning to remove the redirection eventually. --- polly/lib/Analysis/ScopBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polly/lib/Analysis/ScopBuilder.cpp b/polly/lib/Analysis/ScopBuilder.cpp index c0babb85f5c4..67a4c4345580 100644 --- a/polly/lib/Analysis/ScopBuilder.cpp +++ b/polly/lib/Analysis/ScopBuilder.cpp @@ -689,7 +689,7 @@ isl::set ScopBuilder::getPredecessorDomainConstraints(BasicBlock *BB, // Set of regions of which the entry block domain has been propagated to BB. // all predecessors inside any of the regions can be skipped. - SmallSet PropagatedRegions; + SmallPtrSet PropagatedRegions; for (auto *PredBB : predecessors(BB)) { // Skip backedges.