From d58105fdd4cc50a3e447a0878d28e42787aa9cda Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Mon, 28 Mar 2022 11:17:58 +0200 Subject: [PATCH] ac: remove LLVM 4.0 workaround MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was added to fix https://bugs.freedesktop.org/show_bug.cgi?id=97988 but has been fixed in LLVM since. Reviewed-by: Marek Olšák Part-of: --- src/amd/llvm/ac_llvm_util.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/amd/llvm/ac_llvm_util.c b/src/amd/llvm/ac_llvm_util.c index 9e1091dd9ba..9f215d8e0aa 100644 --- a/src/amd/llvm/ac_llvm_util.c +++ b/src/amd/llvm/ac_llvm_util.c @@ -53,16 +53,9 @@ static void ac_init_llvm_target(void) /* For ACO disassembly. */ LLVMInitializeAMDGPUDisassembler(); - /* Workaround for bug in llvm 4.0 that causes image intrinsics - * to disappear. - * https://reviews.llvm.org/D26348 - * - * "mesa" is the prefix for error messages. - * - */ const char *argv[] = { + /* error messages prefix */ "mesa", - "-simplifycfg-sink-common=false", "-amdgpu-atomic-optimizations=true", #if LLVM_VERSION_MAJOR == 11 /* This fixes variable indexing on LLVM 11. It also breaks atomic.cmpswap on LLVM >= 12. */