diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c b/src/gallium/auxiliary/gallivm/lp_bld_init.c index 1eb4892a4a6..fe3ef4a48df 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_init.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c @@ -171,6 +171,8 @@ create_pass_manager(struct gallivm_state *gallivm) LLVMAddPromoteMemoryToRegisterPass(gallivm->passmgr); #if LLVM_VERSION_MAJOR <= 11 LLVMAddConstantPropagationPass(gallivm->passmgr); +#else + LLVMAddInstructionSimplifyPass(gallivm->passmgr); #endif LLVMAddInstructionCombiningPass(gallivm->passmgr); LLVMAddGVNPass(gallivm->passmgr);