aco: add a new Operand flag to indicate that is 16-bit
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 6 Nov 2020 07:49:12 +0000 (08:49 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 12 Nov 2020 12:32:26 +0000 (12:32 +0000)
commit0ea763a727d671fa7dab2e37b7592fc045a53396
tree55e4a747053e329e941010e478dc9ff9fcc6695a
parentbda35ae6b92caf24a26c96e05a49f1bac42955cf
aco: add a new Operand flag to indicate that is 16-bit

To indicate that the upper 16-bits are always 0 and that optimizing
v_mad_u32_u16 to v_mul_u32_u24 is valid.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7425>
src/amd/compiler/aco_builder_h.py
src/amd/compiler/aco_ir.h
src/amd/compiler/aco_print_ir.cpp