From 080777a34bc3021db491053211bd3d4dedb31e82 Mon Sep 17 00:00:00 2001 From: advik Date: Fri, 19 Jul 2024 00:41:33 +0530 Subject: [PATCH] Add additional rehashing for small sets --- src/libasr/codegen/llvm_utils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libasr/codegen/llvm_utils.cpp b/src/libasr/codegen/llvm_utils.cpp index b42ae26bc7..9ba3acfe10 100644 --- a/src/libasr/codegen/llvm_utils.cpp +++ b/src/libasr/codegen/llvm_utils.cpp @@ -6699,6 +6699,7 @@ namespace LCompilers { llvm::Value* el_hash = get_el_hash(current_capacity, el, el_asr_type, *module); this->resolve_collision_for_write(set, el_hash, el, module, el_asr_type, name2memidx); + rehash_all_at_once_if_needed(set, module, el_asr_type, name2memidx); } llvm::Value* LLVMSetLinearProbing::resolve_collision_for_read_with_bound_check(