Skip to content

ac/llvm: fix umul_high

Karol Herbst requested to merge karolherbst/mesa:rusticl/fix/issue/11761 into main

LLVM optimizes umul_hi with a constant to v_mul_hi_i32_i24_e32 which isn't always what we need here. This causes miscalculations. To prevent LLVM to apply this optimization, we use ac_build_optimization_barrier.

Closes: #11761 (closed)

Edited by Karol Herbst

Merge request reports

Loading