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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user