radeonsi/nir: don't run si_nir_opts again if there is no change
authorMarek Olšák <marek.olsak@amd.com>
Sat, 23 Nov 2019 03:47:02 +0000 (22:47 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 25 Nov 2019 21:48:27 +0000 (16:48 -0500)
commitb02e0d260489cef7e98b222a52358dd75b0a37b4
tree8cac7d38c2f453d7e2255f98f2c58b6d6021d55a
parent4675cb2019cdab3f4980e3f98ce243f668092425
radeonsi/nir: don't run si_nir_opts again if there is no change

0.3% less overhead

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/amd/llvm/ac_nir_to_llvm.c
src/amd/llvm/ac_nir_to_llvm.h
src/gallium/drivers/radeonsi/si_shader_nir.c