Merge pull request #10453 from JosJuice/output-in-use

PPCAnalyst: Count outputs as being in use
This commit is contained in:
JosJuice 2022-03-12 12:31:42 +01:00 committed by GitHub
commit 7a3c719739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -946,8 +946,8 @@ u32 PPCAnalyzer::Analyze(u32 address, CodeBlock* block, CodeBuffer* buffer,
op.gprDiscardable = gprDiscardable;
op.fprDiscardable = fprDiscardable;
op.fprInXmm = fprInXmm;
gprInUse |= op.regsIn;
fprInUse |= op.fregsIn;
gprInUse |= op.regsIn | op.regsOut;
fprInUse |= op.fregsIn | op.GetFregsOut();
if (op.canEndBlock || op.canCauseException)
{
gprDiscardable = BitSet32{};