ac: force enable -structurizecfg-skip-uniform-regions for LLVM 11
authorMarek Olšák <marek.olsak@amd.com>
Thu, 23 Apr 2020 01:05:36 +0000 (21:05 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 27 Apr 2020 11:20:16 +0000 (11:20 +0000)
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>

src/amd/llvm/ac_llvm_util.c

index e32b630fbdc56a5e6d63d8a4052ceca6710182be..9684101995b181005679e6f18ccf99015b421b26 100644 (file)
@@ -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);