mesa/src/amd
Rhys Perry d89461208b aco: consider pseudo-instructions reading exec in needs_exec_mask()
No matter the format, this should return true if the instruction has an
exec operand.

Otherwise, eliminate_useless_exec_writes_in_block() could remove an exec
write in a block if it's successor begins with:
 s2: %3737:s[8-9] = p_parallelcopy %0:exec
 s2: %0:exec,  s1: %3738:scc = s_wqm_b64 %3737:s[8-9]

Totals from 3 (0.00% of 150170) affected shaders (GFX10.3):
CodeSize: 23184 -> 23204 (+0.09%)
Instrs: 4143 -> 4148 (+0.12%)
Latency: 98379 -> 98382 (+0.00%)
Copies: 172 -> 175 (+1.74%)
Branches: 95 -> 97 (+2.11%)

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Fixes: bc13049747 ("aco: Eliminate useless exec writes in jump threading.")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5620
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13776>
2021-11-15 18:58:37 +00:00
..
addrlib amd/addrlib: Ignore self-assign warnings. 2021-11-09 20:51:14 +00:00
ci ci/deqp-runner: Rename the deqp-drivername-*.txt files to drivername-*.txt 2021-10-27 20:54:11 +00:00
common ac/spm: fix determining the counter slot 2021-11-15 11:24:36 +01:00
compiler aco: consider pseudo-instructions reading exec in needs_exec_mask() 2021-11-15 18:58:37 +00:00
llvm ac/llvm: accept primitives whose face culling determinant is Inf or NaN 2021-10-19 12:49:06 +00:00
registers python: drop python2 support 2021-08-14 21:44:32 +00:00
vulkan radv: use nir_fold_16bit_sampler_conversions() 2021-11-15 18:28:20 +00:00
.clang-format radv: Add clang-format for AMD code. 2021-04-10 03:31:32 +02:00
meson.build radv: Allow building when LLVM isn’t enabled 2021-10-01 10:40:18 +02:00