Mesa (master): llvmpipe: store zero into all alloca'd values
Keith Whitwell
keithw at kemper.freedesktop.org
Sat Oct 9 10:46:37 UTC 2010
Module: Mesa
Branch: master
Commit: 6da29f36111edc821a4aa10128e9681fc75a43d7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6da29f36111edc821a4aa10128e9681fc75a43d7
Author: Keith Whitwell <keithw at vmware.com>
Date: Thu Oct 7 19:49:20 2010 +0100
llvmpipe: store zero into all alloca'd values
Fixes slowdown in isosurf with earlier versions of llvm.
---
src/gallium/auxiliary/gallivm/lp_bld_flow.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_flow.c b/src/gallium/auxiliary/gallivm/lp_bld_flow.c
index 5bc9c74..cd5fbc2 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_flow.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_flow.c
@@ -830,6 +830,7 @@ lp_build_alloca(LLVMBuilderRef builder,
}
res = LLVMBuildAlloca(first_builder, type, name);
+ LLVMBuildStore(builder, LLVMConstNull(type), res);
LLVMDisposeBuilder(first_builder);
More information about the mesa-commit
mailing list