mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
recompiler: emit a label right after s_branch to prevent dead code interferrence
This commit is contained in:
parent
e9ede8d627
commit
f8563731ea
@ -80,6 +80,8 @@ void CFG::EmitLabels() {
|
||||
if (inst.IsUnconditionalBranch()) {
|
||||
const u32 target = inst.BranchTarget(pc);
|
||||
AddLabel(target);
|
||||
// Emit this label so that the block ends with s_branch instruction
|
||||
AddLabel(pc + inst.length);
|
||||
} else if (inst.IsConditionalBranch()) {
|
||||
const u32 true_label = inst.BranchTarget(pc);
|
||||
const u32 false_label = pc + inst.length;
|
||||
|
Loading…
Reference in New Issue
Block a user