From 2c7554fe01257c371231eb8dc8c642cde4742955 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Tue, 7 Jul 2020 13:11:07 +0100 Subject: [PATCH] aco: use unordered_set for spill id interferences MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Seems to be faster. Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_spill.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++; } -- 2.30.2