From 01e6c788ce64a5d9861c192309bfa95518b5445c Mon Sep 17 00:00:00 2001 From: lizzie Date: Sun, 1 Feb 2026 05:51:35 +0000 Subject: [PATCH] fix unstable iter --- src/shader_recompiler/ir_opt/ssa_rewrite_pass.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/shader_recompiler/ir_opt/ssa_rewrite_pass.cpp b/src/shader_recompiler/ir_opt/ssa_rewrite_pass.cpp index 3624f1edd1..88e0a6b58b 100644 --- a/src/shader_recompiler/ir_opt/ssa_rewrite_pass.cpp +++ b/src/shader_recompiler/ir_opt/ssa_rewrite_pass.cpp @@ -53,9 +53,9 @@ struct IndirectBranchVariable { auto operator<=>(const IndirectBranchVariable&) const noexcept = default; }; -using Variant = std::variant; -using ValueMap = ankerl::unordered_dense::map; +using Variant = std::variant; +// TODO: majority of these require stable iterators, test with XC beforehand +using ValueMap = std::unordered_map; struct DefTable { const IR::Value& Def(IR::Block* block, IR::Reg variable) { @@ -115,7 +115,8 @@ struct DefTable { } std::array preds; - ankerl::unordered_dense::map goto_vars; + // TODO: Requires stable iterators + std::unordered_map goto_vars; ValueMap indirect_branch_var; ValueMap zero_flag; ValueMap sign_flag;