nir/inline: Don't use foreach_instr_safe unless we need to
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 27 May 2016 16:25:51 +0000 (09:25 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 27 May 2016 17:28:27 +0000 (10:28 -0700)
commit2fcba404f80c4c83a76dfef03d7cf427ed17415b
treeae405e9dc4442ef4e08e0cbddb659843639d02a5
parent9247570d42600fd01a8afbf6ae0bf6c7008e717a
nir/inline: Don't use foreach_instr_safe unless we need to

Suggested-by: Connor Abbott <cwabbott0@gmail.com>
src/compiler/nir/nir_inline_functions.c