From 3bb65c06706a58b124e4a600eeb35a7b3c5c3a23 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 22 Apr 2020 21:05:36 -0400 Subject: [PATCH] ac: force enable -structurizecfg-skip-uniform-regions for LLVM 11 Reviewed-by: Pierre-Eric Pelloux-Prayer Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/llvm/ac_llvm_util.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.30.2