ac/llvm: don't use the 64-bit umul_hi workaround with LLVM 19.1

It's fixed there.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31187>
This commit is contained in:
Marek Olšák 2024-09-13 08:15:48 -04:00 committed by Marge Bot
parent 89db355cc4
commit f7199b9971

View file

@ -334,7 +334,8 @@ static LLVMValueRef emit_umul_high(struct ac_llvm_context *ctx, LLVMValueRef src
{
LLVMValueRef dst64, result;
#if LLVM_VERSION_MAJOR < 20
/* 64-bit multiplication by a constant is broken in old LLVM. Fixed in LLVM 19.1 and LLVM 20. */
#if LLVM_VERSION_MAJOR < 19 || (LLVM_VERSION_MAJOR == 19 && LLVM_VERSION_MINOR == 0)
if (LLVMIsConstant(src0))
ac_build_optimization_barrier(ctx, &src1, false);
else