Add missing condition for do-while on goto elimination
This commit is contained in:
parent
5bf433f4b0
commit
9db5b4a63c
1 changed files with 6 additions and 0 deletions
|
@ -316,6 +316,12 @@ namespace Ryujinx.Graphics.Shader.StructuredIr
|
||||||
EncloseSingleInst(stmt, Instruction.LoopContinue);
|
EncloseSingleInst(stmt, Instruction.LoopContinue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Modify the do-while condition to allow it to continue.
|
||||||
|
if (!ContainsCondComb(block.Condition, Instruction.LogicalOr, stmt.Condition))
|
||||||
|
{
|
||||||
|
block.OrCondition(stmt.Condition);
|
||||||
|
}
|
||||||
|
|
||||||
return block;
|
return block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue