From b73f47f33c071a95d266d28b91782efd0a69f23d Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 11 Feb 2025 09:16:02 -0800 Subject: [PATCH] [SPIRV] Avoid repeated hash lookups (NFC) --- llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp b/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp index 719abde3d7fa6..4f3cc9ada04cf 100644 --- a/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp +++ b/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp @@ -93,7 +93,7 @@ class SPIRVEmitIntrinsics void eraseTodoType(Value *Op) { auto It = TodoType.find(Op); if (It != TodoType.end() && It->second) { - TodoType[Op] = false; + It->second = false; --TodoTypeSz; } }