From 2c2333c9216f26e9f7f51b39fb2c88fb7745abb4 Mon Sep 17 00:00:00 2001 From: IndecisiveTurtle <47210458+raphaelthegreat@users.noreply.github.com> Date: Sat, 22 Mar 2025 23:16:04 +0200 Subject: [PATCH] control_flow_graph: Remove debug code --- .../frontend/control_flow_graph.cpp | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/src/shader_recompiler/frontend/control_flow_graph.cpp b/src/shader_recompiler/frontend/control_flow_graph.cpp index ca71efe9b..cf1882b8c 100644 --- a/src/shader_recompiler/frontend/control_flow_graph.cpp +++ b/src/shader_recompiler/frontend/control_flow_graph.cpp @@ -77,26 +77,6 @@ CFG::CFG(Common::ObjectPool& block_pool_, std::span inst_l EmitBlocks(); LinkBlocks(); SplitDivergenceScopes(); - - std::unordered_map local_labels; - local_labels.reserve(blocks.size()); - - for (Block& block : blocks) { - local_labels.emplace(&block, 0); - } - for (Block& block : blocks) { - const u32 label{local_labels.at(&block)}; - if (block.end_class == EndClass::Branch) { - if (block.cond == IR::Condition::True) { - ASSERT(local_labels.contains(block.branch_true)); - } else if (block.cond == IR::Condition::False) { - ASSERT(local_labels.contains(block.branch_false)); - } else { - ASSERT(local_labels.contains(block.branch_true) && - local_labels.contains(block.branch_false)); - } - } - } } void CFG::EmitLabels() {