nir/search: Save/restore the variables_seen bitmask when matching
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 8 May 2015 16:48:33 +0000 (09:48 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 9 May 2015 00:29:15 +0000 (17:29 -0700)
commitfb5f411248d9c342ed249228f7dac713dcfd3d06
tree7d1849d20b49a158baed3434e1d041c7bf186043
parente0cfe59c37245d8555202a12b9b29866894d6d18
nir/search: Save/restore the variables_seen bitmask when matching

Shader-db results on Broadwell:

   total instructions in shared programs: 7152330 -> 7137006 (-0.21%)
   instructions in affected programs:     1330548 -> 1315224 (-1.15%)
   helped:                                5797
   HURT:                                  76
   GAINED:                                0
   LOST:                                  8

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