ac/llvm: add missing optimization barrier for 64-bit readlanes
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 27 Jan 2020 12:42:11 +0000 (13:42 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 12 Mar 2020 07:46:42 +0000 (08:46 +0100)
commitcc320ef9af6b84b6a1f275261b071d05c0ee6a62
tree60a767628c1c8c9d4df312826871e72f31ab021c
parent9c53a3bb223592471d38a4efbfca8d58dd47e432
ac/llvm: add missing optimization barrier for 64-bit readlanes

Otherwise, LLVM optimizes it but it's actually incorrect.

Fixes: 0f45d4dc2b1 ("ac: add ac_build_readlane without optimization barrier")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3585>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3585>
src/amd/llvm/ac_llvm_build.c