nir/gcm: Use an array for storing the early block
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 18 Jan 2017 02:38:37 +0000 (18:38 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 20 Apr 2020 03:46:29 +0000 (03:46 +0000)
commit1f60f1aa3d0853b8374ec384c128eb4731fe4c85
tree9ed5a88a98ccdb5ddca968bc8525d880e73de55e
parent6006a9e275750bf762f9f041f9078aaf8af4dd0e
nir/gcm: Use an array for storing the early block

We are about to adjust our instruction block assignment algorithm and we
will want to know the current block that the instruction lives in.  In
order to allow for this, we can't overwrite nir_instr::block in the
early scheduling pass.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4636>
src/compiler/nir/nir_opt_gcm.c