Re: [Mesa-dev] [PATCH 1/2] nir: Initial implementation of a nir_instr_worklist

2018-03-20 Thread Eric Anholt
Thomas Helland writes: > Make a simple worklist by basically just wrapping u_vector. > This is intended used in nir_opt_dce to reduce the number of calls > to ralloc, as we are currenlty spamming ralloc quite bad. It should > also give better cache locality and much lower memory usage. > --- > s

[Mesa-dev] [PATCH 1/2] nir: Initial implementation of a nir_instr_worklist

2018-03-17 Thread Thomas Helland
Make a simple worklist by basically just wrapping u_vector. This is intended used in nir_opt_dce to reduce the number of calls to ralloc, as we are currenlty spamming ralloc quite bad. It should also give better cache locality and much lower memory usage. --- src/compiler/nir/nir_worklist.h | 69 +