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

2017-05-22 Thread Thomas Helland
2017-05-22 20:55 GMT+02:00 Thomas Helland : > This should prove benefitial in the common case of inserting > and not rewriting anything. > > V2: Use hash_instr directly instead of going through the function > pointer embedded in the set Threw some sysprof profiles at this patch. This should theore

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

2017-05-22 Thread Thomas Helland
This should prove benefitial in the common case of inserting and not rewriting anything. V2: Use hash_instr directly instead of going through the function pointer embedded in the set --- src/compiler/nir/nir_instr_set.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sr