Skip to content

Commit ae4f249

Browse files
committed
[IR] Verifier: Use a SmallPtrSet for a small set of pointers. NFC
1 parent 79afb94 commit ae4f249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/IR/Verifier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ LogicalResult OperationVerifier::verifyOnExit(Operation &op) {
268268
/// verifyBlockPostChildren.
269269
LogicalResult OperationVerifier::verifyOperation(Operation &op) {
270270
SmallVector<WorkItem> worklist{{&op}};
271-
DenseSet<WorkItem> seen;
271+
SmallPtrSet<WorkItem, 8> seen;
272272
while (!worklist.empty()) {
273273
WorkItem top = worklist.back();
274274

0 commit comments

Comments
 (0)