nir/GCM: Pull unpinned instructions out of blocks while pinning
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 10 Feb 2015 04:18:44 +0000 (20:18 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 20 Feb 2015 01:06:17 +0000 (17:06 -0800)
commitc7002fad9062f54f7dfabe25dc14b7fb217e6adc
tree1b005dc21cc724b2476ddd849816267279520c12
parent8dfe6f672f4f3e226089c6cc8d392fcd39dff5cb
nir/GCM: Pull unpinned instructions out of blocks while pinning

This lets us be slightly more efficient by not walking the CFG extra times.
Also, it may make it easier to ensure that GVN happens on only unpinned
instructions.

Reviewed-by: Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir_opt_gcm.c