aco: allow to use the range analysis UB in emit_{sop2,vop2}_instruction()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 16 Nov 2020 16:58:57 +0000 (17:58 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 23 Nov 2020 18:34:40 +0000 (18:34 +0000)
commiteaef1f21278ff8ddd534946c562b211b7208c155
tree3ca293fbd79842350d5fd853abdd22198d61bcb8
parentbe600b009a8c4508a488f71b9eaf5e6901dff245
aco: allow to use the range analysis UB in emit_{sop2,vop2}_instruction()

It will allow to combine v_add+s_lshl or v_add+v_lshlrev to
v_mad_u32_u24 on GFX6-8 if operands are known to be 16-bit or 24-bit.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7673>
src/amd/compiler/aco_instruction_selection.cpp