From ec9df376d8f9e9a2e8e2d7736883f78243c658d1 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Sat, 24 Jan 2026 16:17:53 +0100 Subject: [PATCH] ac/llvm: Remove -promote-alloca workaround This bug was fixed many years ago. Reviwed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/amd/llvm/ac_llvm_util.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/amd/llvm/ac_llvm_util.c b/src/amd/llvm/ac_llvm_util.c index cd7c9f417c9..8d54fa0f861 100644 --- a/src/amd/llvm/ac_llvm_util.c +++ b/src/amd/llvm/ac_llvm_util.c @@ -150,9 +150,7 @@ void ac_llvm_set_target_features(LLVMValueRef F, struct ac_llvm_context *ctx, bo { char features[2048]; - snprintf(features, sizeof(features), "+DumpCode%s%s%s", - /* GFX9 has broken VGPR indexing, so always promote alloca to scratch. */ - ctx->gfx_level == GFX9 ? ",-promote-alloca" : "", + snprintf(features, sizeof(features), "+DumpCode%s%s", /* Wave32 is the default. */ ctx->gfx_level >= GFX10 && ctx->wave_size == 64 ? ",+wavefrontsize64,-wavefrontsize32" : "",