ac/llvm: fix demote inside conditional branches
authorMarek Olšák <marek.olsak@amd.com>
Mon, 21 Sep 2020 02:50:52 +0000 (22:50 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 12 Nov 2020 21:02:05 +0000 (21:02 +0000)
commitaa757f4f8c367f408bc02b0daf4787b61dd899d6
tree0a4fb82c0c32acfcec79f58cb03513cf8e7e5a4f
parentcb20d58f45c22d48208805ed7df8b98aee525189
ac/llvm: fix demote inside conditional branches

The big comment explains it.

v2: don't kill if subgroup ops are used

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7586>
src/amd/llvm/ac_llvm_build.c
src/amd/llvm/ac_llvm_build.h
src/amd/llvm/ac_nir_to_llvm.c