diff --git a/src/shader_recompiler/frontend/control_flow_graph.cpp b/src/shader_recompiler/frontend/control_flow_graph.cpp index 805fdb108..8b5136c17 100644 --- a/src/shader_recompiler/frontend/control_flow_graph.cpp +++ b/src/shader_recompiler/frontend/control_flow_graph.cpp @@ -141,8 +141,10 @@ void CFG::EmitLabels() { } else if (inst.IsConditionalBranch()) { const u32 true_label = inst.BranchTarget(pc); const u32 false_label = pc + inst.length; - AddLabel(true_label); - AddLabel(false_label); + if (true_label != false_label) { + AddLabel(true_label); + AddLabel(false_label); + } } else if (inst.opcode == Opcode::S_ENDPGM) { const u32 next_label = pc + inst.length; AddLabel(next_label);