mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 11:20:20 +01:00
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:
parent
89db355cc4
commit
f7199b9971
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue