aco: keep label_mul/usedef/minmax in apply_extract
authorGeorg Lehmann <dadschoorse@gmail.com>
Thu, 9 Mar 2023 13:53:34 +0000 (14:53 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 30 Mar 2023 03:34:34 +0000 (03:34 +0000)
commite699a4181c146371d90b771dd8ca563553326b1e
tree7d51659b4c223fb5c85548dc34b80ae1df022e88
parent7014145ab23baf9824330259a05aa95e795394ef
aco: keep label_mul/usedef/minmax in apply_extract

16bit int mad/fma/minmax combining can work with opsel set.

All other optimizations should already check if the instruction uses sdwa,
because we don't check this when applying the label initially.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22069>
src/amd/compiler/aco_optimizer.cpp