OSDN Git Service

nir: Add a small pass to rematerialize derefs per-block
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 11 Sep 2018 17:15:22 +0000 (12:15 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 19 Sep 2018 06:59:40 +0000 (01:59 -0500)
commit7d1d1208c2b38890fe065b6431ef2e3b7166bae4
tree9c2368e2f51ec97a12f54a44270c04bc86bad8fe
parent4490fce16631fbc098f2fcf3f2c4b73f32a974a5
nir: Add a small pass to rematerialize derefs per-block

This pass re-materializes deref instructions on a per-block basis to
ensure that every use of a deref occurs in the same block as the
instruction which uses it.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Cc: "18.2" <mesa-stable@lists.freedesktop.org>
src/compiler/nir/nir.h
src/compiler/nir/nir_deref.c