1e2663b62c
LLVM always believes that this instruction's upper bound is the wave size, regardless of ac_set_range_metadata and regardless of whether the add source is used. As a workaround, emit an extra add instruction. Cc: mesa-stable Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17706>