From b0d476fcdc8f211c7eb944b8ca77b1a282fde7ec Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Sat, 5 Nov 2011 09:49:44 -0700 Subject: [PATCH] Stop zero-initializing memory used to store return values. This seems to have a noticable (small) performance benefit on a few of the example workloads. --- ctx.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/ctx.cpp b/ctx.cpp index 4a5bc561..27d7f1a7 100644 --- a/ctx.cpp +++ b/ctx.cpp @@ -160,8 +160,6 @@ FunctionEmitContext::FunctionEmitContext(Function *func, Symbol *funSym, else { LLVM_TYPE_CONST llvm::Type *ftype = returnType->LLVMType(g->ctx); returnValuePtr = AllocaInst(ftype, "return_value_memory"); - // FIXME: don't do this store??? - StoreInst(llvm::Constant::getNullValue(ftype), returnValuePtr); } if (m->diBuilder) {