summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/ir
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/frontend/ir/structured_control_flow.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/shader_recompiler/frontend/ir/structured_control_flow.cpp b/src/shader_recompiler/frontend/ir/structured_control_flow.cpp
index d145095d1..032ac8fda 100644
--- a/src/shader_recompiler/frontend/ir/structured_control_flow.cpp
+++ b/src/shader_recompiler/frontend/ir/structured_control_flow.cpp
@@ -272,11 +272,9 @@ public:
272 explicit GotoPass(std::span<Block* const> blocks, ObjectPool<Statement>& stmt_pool) 272 explicit GotoPass(std::span<Block* const> blocks, ObjectPool<Statement>& stmt_pool)
273 : pool{stmt_pool} { 273 : pool{stmt_pool} {
274 std::vector gotos{BuildUnorderedTreeGetGotos(blocks)}; 274 std::vector gotos{BuildUnorderedTreeGetGotos(blocks)};
275 fmt::print(stdout, "BEFORE\n{}\n", DumpTree(root_stmt.children));
276 for (const Node& goto_stmt : gotos | std::views::reverse) { 275 for (const Node& goto_stmt : gotos | std::views::reverse) {
277 RemoveGoto(goto_stmt); 276 RemoveGoto(goto_stmt);
278 } 277 }
279 fmt::print(stdout, "AFTER\n{}\n", DumpTree(root_stmt.children));
280 } 278 }
281 279
282 Statement& RootStatement() noexcept { 280 Statement& RootStatement() noexcept {
@@ -548,7 +546,6 @@ private:
548 size_t Offset(ConstNode stmt) const { 546 size_t Offset(ConstNode stmt) const {
549 size_t offset{0}; 547 size_t offset{0};
550 if (!SearchNode(root_stmt.children, stmt, offset)) { 548 if (!SearchNode(root_stmt.children, stmt, offset)) {
551 fmt::print(stdout, "{}\n", DumpTree(root_stmt.children));
552 throw LogicError("Node not found in tree"); 549 throw LogicError("Node not found in tree");
553 } 550 }
554 return offset; 551 return offset;