llvmpipe: Enable mem2reg pass even with LP_DEBUG=nopt.
Otherwise things start crashing.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user