freedreno/ir3/ra: handle array case for SFU select_reg opt
authorRob Clark <robdclark@chromium.org>
Sat, 4 Apr 2020 00:42:05 +0000 (17:42 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Apr 2020 20:47:28 +0000 (20:47 +0000)
commit96ff2a4099d0eb5c29255429a0e5284e461ec8d5
tree262721cd6e5a68859c1071cc1da2dfd8841c5b1a
parentb787b353d04e23fdea567186f7cb422fd687bcdd
freedreno/ir3/ra: handle array case for SFU select_reg opt

The src of the SFU instruction could also be array/reg (non-SSA).
Handle this case too.

The postsched cp pass makes this scenario more likely.

Fixes: cc82521de4e ("freedreno/ir3: round-robin RA")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4440>
src/freedreno/ir3/ir3_ra.c