nir/lower_indirect: Bail early if modes == 0
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 28 Oct 2017 16:05:01 +0000 (09:05 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 2 Aug 2018 01:02:28 +0000 (18:02 -0700)
commit7f75cf2a9408b9af562e033ef6c1d1fd15141421
tree52cc0c264eb55e403bb6f2a66465ca63da2686c8
parent4434591bf56a6b0c193ef209ea9d7b9e3c95a522
nir/lower_indirect: Bail early if modes == 0

There's no point in walking the program if we're never going to actually
lower anything.

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