gallivm: add InstSimplify pass
This is the recommended replacement for the removed ConstantPropagation pass, and llvm now added c binding for it. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6585>
This commit is contained in:
parent
64b0b7c274
commit
1d018bc7fd
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue