mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 15:40:11 +01:00
ac: force enable -structurizecfg-skip-uniform-regions for LLVM 11
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4696>
This commit is contained in:
parent
eeab9c93db
commit
3bb65c0670
1 changed files with 4 additions and 0 deletions
|
|
@ -69,6 +69,10 @@ static void ac_init_llvm_target()
|
||||||
#if LLVM_VERSION_MAJOR >= 10
|
#if LLVM_VERSION_MAJOR >= 10
|
||||||
/* Atomic optimizations require LLVM 10.0 for gfx10 support. */
|
/* Atomic optimizations require LLVM 10.0 for gfx10 support. */
|
||||||
"-amdgpu-atomic-optimizations=true",
|
"-amdgpu-atomic-optimizations=true",
|
||||||
|
#endif
|
||||||
|
#if LLVM_VERSION_MAJOR >= 11
|
||||||
|
/* This was disabled by default in: https://reviews.llvm.org/D77228 */
|
||||||
|
"-structurizecfg-skip-uniform-regions",
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
LLVMParseCommandLineOptions(ARRAY_SIZE(argv), argv, NULL);
|
LLVMParseCommandLineOptions(ARRAY_SIZE(argv), argv, NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue