ac: fix fast division
authorMarek Olšák <marek.olsak@amd.com>
Fri, 20 Mar 2020 20:35:45 +0000 (16:35 -0400)
committerMarge Bot <eric+marge@anholt.net>
Sat, 21 Mar 2020 22:34:17 +0000 (22:34 +0000)
commit303842b2dbf30e7dd1a4cd463e76aecf81adebb8
tree453508f310b619ceac90585bad12e4e1427739a2
parent55b0a676fdb538095b8d7c6e93a92d702534df39
ac: fix fast division

This stopped working with LLVM 11 and might occasionally have been broken
on older LLVM, because the metadata was set on the mul, not on the rcp.

Cc: 19.3 20.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4268>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4268>
src/amd/llvm/ac_llvm_build.c