Re: [Mesa-dev] [PATCH v3 4/7] nir: add an instruction set API

2015-10-09 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Thu, Oct 8, 2015 at 9:46 PM, Connor Abbott wrote: > This will replace direct usage of nir_instrs_equal() in the CSE pass, > which reduces an O(n^2) algorithm with an effectively O(n) one. It'll > also be useful for implementing GVN on top of GCM. > > v2: > - Add te

[Mesa-dev] [PATCH v3 4/7] nir: add an instruction set API

2015-10-08 Thread Connor Abbott
This will replace direct usage of nir_instrs_equal() in the CSE pass, which reduces an O(n^2) algorithm with an effectively O(n) one. It'll also be useful for implementing GVN on top of GCM. v2: - Add texture support. - Add more comments. - Rename instr_can_hash() to instr_can_rewrite() since it's