ac/llvm: Remove -promote-alloca workaround

This bug was fixed many years ago.

Reviwed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39566>
This commit is contained in:
Matt Arsenault 2026-01-24 16:17:53 +01:00 committed by Marge Bot
parent 8e9fec8e40
commit ec9df376d8

View file

@ -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" : "",