projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40d7be5
)
llvmpipe: store zero into all alloca'd values
author
Keith Whitwell
<keithw@vmware.com>
Thu, 7 Oct 2010 18:49:20 +0000
(19:49 +0100)
committer
Keith Whitwell
<keithw@vmware.com>
Sat, 9 Oct 2010 10:43:23 +0000
(11:43 +0100)
Fixes slowdown in isosurf with earlier versions of llvm.
src/gallium/auxiliary/gallivm/lp_bld_flow.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_flow.c
b/src/gallium/auxiliary/gallivm/lp_bld_flow.c
index
5bc9c74
..
cd5fbc2
100644
(file)
--- 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);