[llvm] [llvm] Replace unordered_{map,set} with Dense{Map,Set}/SmallPtrSet (PR #202222)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 7 14:41:26 PDT 2026


================
@@ -3051,17 +3050,18 @@ void SPIRVEmitIntrinsics::processInstrAfterVisit(Instruction *I,
 
 Type *SPIRVEmitIntrinsics::deduceFunParamElementType(Function *F,
                                                      unsigned OpIdx) {
-  std::unordered_set<Function *> FVisited;
+  DenseSet<Function *> FVisited;
----------------
MaskRay wrote:

Switched to `SmallPtrSet<Function *, 0>`

https://github.com/llvm/llvm-project/pull/202222


More information about the llvm-commits mailing list