From: Rhys Perry Date: Tue, 7 Jul 2020 12:11:07 +0000 (+0100) Subject: aco: use unordered_set for spill id interferences X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2c7554fe01257c371231eb8dc8c642cde4742955;p=mesa.git aco: use unordered_set for spill id interferences Seems to be faster. Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- diff --git a/src/amd/compiler/aco_spill.cpp b/src/amd/compiler/aco_spill.cpp index faba524b76d..f1199cc3ae2 100644 --- a/src/amd/compiler/aco_spill.cpp +++ b/src/amd/compiler/aco_spill.cpp @@ -56,7 +56,7 @@ struct spill_ctx { std::stack loop_header; std::vector>> next_use_distances_start; std::vector>> next_use_distances_end; - std::vector>> interferences; + std::vector>> interferences; std::vector> affinities; std::vector is_reloaded; std::map remat; @@ -100,7 +100,7 @@ struct spill_ctx { uint32_t allocate_spill_id(RegClass rc) { - interferences.emplace_back(rc, std::set()); + interferences.emplace_back(rc, std::unordered_set()); is_reloaded.push_back(false); return next_spill_id++; }