diff --git a/src/amd/llvm/ac_llvm_util.c b/src/amd/llvm/ac_llvm_util.c index e32b630fbdc..9684101995b 100644 --- a/src/amd/llvm/ac_llvm_util.c +++ b/src/amd/llvm/ac_llvm_util.c @@ -69,6 +69,10 @@ static void ac_init_llvm_target() #if LLVM_VERSION_MAJOR >= 10 /* Atomic optimizations require LLVM 10.0 for gfx10 support. */ "-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 }; LLVMParseCommandLineOptions(ARRAY_SIZE(argv), argv, NULL);