Re: [Mesa-dev] [PATCH 6/7] nir: Prehash in instr_set to avoid unnecessary hashing

2017-02-02 Thread Jason Ekstrand
On Thu, Feb 2, 2017 at 12:57 PM, Thomas Helland wrote: > This should prove benefitial in the common case of inserting > and not rewriting anything. > --- > src/compiler/nir/nir_instr_set.c | 8 ++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/src/compiler/nir/nir_instr

[Mesa-dev] [PATCH 6/7] nir: Prehash in instr_set to avoid unnecessary hashing

2017-02-02 Thread Thomas Helland
This should prove benefitial in the common case of inserting and not rewriting anything. --- src/compiler/nir/nir_instr_set.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/compiler/nir/nir_instr_set.c b/src/compiler/nir/nir_instr_set.c index 9cb9ed43e8..4c45d051f8