mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
gallivm: fix build on LLVM 12 due to LLVMAddConstantPropagationPass removal
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3465
Cc: 20.1 20.2 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6531>
(cherry picked from commit 52cac06862)
This commit is contained in:
parent
7a63155052
commit
1629fe89a6
2 changed files with 3 additions and 1 deletions
|
|
@ -490,7 +490,7 @@
|
|||
"description": "gallivm: fix build on LLVM 12 due to LLVMAddConstantPropagationPass removal",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -169,7 +169,9 @@ create_pass_manager(struct gallivm_state *gallivm)
|
|||
*/
|
||||
LLVMAddReassociatePass(gallivm->passmgr);
|
||||
LLVMAddPromoteMemoryToRegisterPass(gallivm->passmgr);
|
||||
#if LLVM_VERSION_MAJOR <= 11
|
||||
LLVMAddConstantPropagationPass(gallivm->passmgr);
|
||||
#endif
|
||||
LLVMAddInstructionCombiningPass(gallivm->passmgr);
|
||||
LLVMAddGVNPass(gallivm->passmgr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue