nir: Add a safety check that we don't remove dead I/O vars after lowering.
authorEric Anholt <eric@anholt.net>
Mon, 16 Oct 2017 22:32:30 +0000 (15:32 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 20 Oct 2017 23:26:07 +0000 (16:26 -0700)
commitd9ce4ac990090b3fa940a662655b61359f296be0
treee508ee2f667c9deb4a0ce0ffad71676b578596b7
parenta2c6fbb3ee16a58a9098b031a6382618d570bee8
nir: Add a safety check that we don't remove dead I/O vars after lowering.

The pass only looks at var load/store intrinsics, not input load/store
intrinsics, so assert that we don't see the other type.

v2: Adjust comment indentation.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/nir/nir_remove_dead_variables.c