Skip to content

Commit 67ca5da

Browse files
[polly] Replace SmallSet with SmallPtrSet (NFC) (llvm#154367)
This patch replaces SmallSet<T *, N> with SmallPtrSet<T *, N>. Note that SmallSet.h "redirects" SmallSet to SmallPtrSet for pointer element types: template <typename PointeeType, unsigned N> class SmallSet<PointeeType*, N> : public SmallPtrSet<PointeeType*, N> {}; 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.
1 parent ccd5dda commit 67ca5da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

polly/lib/Analysis/ScopBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ isl::set ScopBuilder::getPredecessorDomainConstraints(BasicBlock *BB,
689689

690690
// Set of regions of which the entry block domain has been propagated to BB.
691691
// all predecessors inside any of the regions can be skipped.
692-
SmallSet<Region *, 8> PropagatedRegions;
692+
SmallPtrSet<Region *, 8> PropagatedRegions;
693693

694694
for (auto *PredBB : predecessors(BB)) {
695695
// Skip backedges.

0 commit comments

Comments
 (0)