ac/nir: Use an array instead of hashtable for SSA defs.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 10 Apr 2018 07:31:24 +0000 (09:31 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 10 Apr 2018 07:53:16 +0000 (09:53 +0200)
commit4381be4648b9ebb15b0a06885489998d5daac482
tree4d7b7574d62d84e44316ea5744becc3922f3de3f
parent6066f08ee937ad73dd06ec763dff0223d5268874
ac/nir: Use an array instead of hashtable for SSA defs.

Saves about 2% of compile time for F1 2017, as well as reduce code
size of an optimized libvulkan_radeon.so by about 1 KiB.

This still keeps the hashtable, as we also stored blocks in there.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/common/ac_nir_to_llvm.c