From: Marek Olšák Date: Thu, 23 Apr 2020 01:05:36 +0000 (-0400) Subject: ac: force enable -structurizecfg-skip-uniform-regions for LLVM 11 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3bb65c06706a58b124e4a600eeb35a7b3c5c3a23;p=mesa.git ac: force enable -structurizecfg-skip-uniform-regions for LLVM 11 Reviewed-by: Pierre-Eric Pelloux-Prayer Reviewed-by: Samuel Pitoiset Part-of: --- 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);