aboutsummaryrefslogtreecommitdiff
path: root/src/backend/jit/llvm/llvmjit_expr.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2018-11-16 10:25:34 -0800
committerAndres Freund <andres@anarazel.de>2018-11-16 10:29:01 -0800
commita7aa608e0f5910f9c73a530a66142c08e3d9043a (patch)
treecfe884e427c23fcf7a629bb7cb8276bf2b43e457 /src/backend/jit/llvm/llvmjit_expr.c
parent3f2393edefa5ef2b6970a5a2fa2c7e9c55cc10cf (diff)
downloadpostgresql-a7aa608e0f5910f9c73a530a66142c08e3d9043a.tar.gz
postgresql-a7aa608e0f5910f9c73a530a66142c08e3d9043a.zip
Inline hot path of slot_getsomeattrs().
This yields a minor speedup, which roughly balances the loss from the upcoming introduction of callbacks to do some operations on slots. Author: Andres Freund Discussion: https://postgr.es/m/20181105210039.hh4vvi4vwoq5ba2q@alap3.anarazel.de
Diffstat (limited to 'src/backend/jit/llvm/llvmjit_expr.c')
-rw-r--r--src/backend/jit/llvm/llvmjit_expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/jit/llvm/llvmjit_expr.c b/src/backend/jit/llvm/llvmjit_expr.c
index 4cee35f582c..1725f6d0be4 100644
--- a/src/backend/jit/llvm/llvmjit_expr.c
+++ b/src/backend/jit/llvm/llvmjit_expr.c
@@ -345,7 +345,7 @@ llvm_compile_expr(ExprState *state)
params[1] = l_int32_const(op->d.fetch.last_var);
LLVMBuildCall(b,
- llvm_get_decl(mod, FuncSlotGetsomeattrs),
+ llvm_get_decl(mod, FuncSlotGetsomeattrsInt),
params, lengthof(params), "");
}