From 94aa2d0b7cb8852eef8a419555f9bf4263909469 Mon Sep 17 00:00:00 2001 From: kabra1110 Date: Mon, 31 Jul 2023 17:41:45 +0530 Subject: [PATCH] use only LP --- src/libasr/codegen/llvm_utils.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/libasr/codegen/llvm_utils.cpp b/src/libasr/codegen/llvm_utils.cpp index f02cd6e356..d9963e702f 100644 --- a/src/libasr/codegen/llvm_utils.cpp +++ b/src/libasr/codegen/llvm_utils.cpp @@ -876,13 +876,11 @@ namespace LCompilers { } } - void LLVMUtils::set_set_api(ASR::Set_t* set_type) { - if( ASR::is_a(*set_type->m_type) ) { - set_api = set_api_sc; - } else { - set_api = set_api_lp; - } - // set_api = set_api_lp; + void LLVMUtils::set_set_api(ASR::Set_t* /*set_type*/) { + // As per benchmarks, separate chaining + // does not provide significant gains over + // linear probing. + set_api = set_api_lp; } std::vector LLVMUtils::convert_args(const ASR::Function_t& x, llvm::Module* module) {