mesa/src/amd/llvm
Rhys Perry 271dd1837a ac/llvm: insert phis before demote kill
LLVM (like NIR) requires phi instructions to be before any other
instructions in the block. ac_branch_exited() can insert non-phi
instructions before visit_block() adds phis, so visit_block() should add
phi instructions before the non-phi instructions ac_branch_exited()
inserts.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Fixes: aa757f4f8c ("ac/llvm: fix demote inside conditional branches")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8054>
2020-12-18 09:56:43 +00:00
..
ac_llvm_build.c amd: Cast to int for %d snprintf argument 2020-11-27 20:49:00 -08:00
ac_llvm_build.h amd/llvm: fix C++ compile failures 2020-12-09 16:01:21 -05:00
ac_llvm_cull.c ac: add build_alloca with an initializer 2020-11-18 06:19:59 +00:00
ac_llvm_cull.h amd/llvm: switch to 3-spaces style 2020-09-07 10:00:20 +02:00
ac_llvm_helper.cpp ac/nir: fix nir_intrinsic_shared_atomic_fadd 2020-10-01 06:38:42 +00:00
ac_llvm_util.c amd: Fix signature mismatch 2020-11-27 20:49:00 -08:00
ac_llvm_util.h amd: Fix declaration mismatch 2020-11-27 20:49:00 -08:00
ac_nir_to_llvm.c ac/llvm: insert phis before demote kill 2020-12-18 09:56:43 +00:00
ac_nir_to_llvm.h amd/llvm: switch to 3-spaces style 2020-09-07 10:00:20 +02:00
ac_shader_abi.h radv/llvm: implement a workaround for gl_FragCoord.z with VRS on GFX10.3 2020-12-14 16:22:38 +00:00
meson.build meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00