OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53cbb81
)
llvmpipe: Enable mem2reg pass even with LP_DEBUG=nopt.
author
José Fonseca
<jfonseca@vmware.com>
Wed, 12 May 2010 19:04:11 +0000
(20:04 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Wed, 12 May 2010 19:18:32 +0000
(20:18 +0100)
Otherwise things start crashing.
src/gallium/drivers/llvmpipe/lp_jit.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_jit.c
b/src/gallium/drivers/llvmpipe/lp_jit.c
index
b10ee7a
..
243aea6
100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_jit.c
+++ b/
src/gallium/drivers/llvmpipe/lp_jit.c
@@
-195,6
+195,11
@@
lp_jit_screen_init(struct llvmpipe_screen *screen)
LLVMAddInstructionCombiningPass(screen->pass);
}
LLVMAddGVNPass(screen->pass);
+ } else {
+ /* We need at least this pass to prevent the backends to fail in
+ * unexpected ways.
+ */
+ LLVMAddPromoteMemoryToRegisterPass(screen->pass);
}
lp_jit_init_globals(screen);