llvmpipe: Enable mem2reg pass even with LP_DEBUG=nopt.

Otherwise things start crashing.
This commit is contained in:
José Fonseca
2010-05-12 20:04:11 +01:00
parent 53cbb81576
commit 5326e1846d
+5
View File
@@ -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);