mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-11-19 17:21:15 +01:00
Remove broken adds/cmn with condition check optimization (#218)
This commit is contained in:
1 parent
c206239d28
commit
c99b2884e4
2 files changed
-7
No files matched your search
@@ -50,8 +50,6 @@ namespace ChocolArm64.Instruction
|
|||||||
|
|
||||||
public static void Adds(AILEmitterCtx Context)
|
public static void Adds(AILEmitterCtx Context)
|
||||||
{
|
{
|
||||||
Context.TryOptMarkCondWithoutCmp();
|
|
||||||
|
|
||||||
EmitDataLoadOpers(Context);
|
EmitDataLoadOpers(Context);
|
||||||
|
|
||||||
Context.Emit(OpCodes.Add);
|
Context.Emit(OpCodes.Add);
|
||||||
|
|||||||
@@ -187,11 +187,6 @@ namespace ChocolArm64.Translation
|
|||||||
Ldloc(Tmp3Index, AIoType.Int, OptOpLastCompare.RegisterSize);
|
Ldloc(Tmp3Index, AIoType.Int, OptOpLastCompare.RegisterSize);
|
||||||
Ldloc(Tmp4Index, AIoType.Int, OptOpLastCompare.RegisterSize);
|
Ldloc(Tmp4Index, AIoType.Int, OptOpLastCompare.RegisterSize);
|
||||||
|
|
||||||
if (OptOpLastCompare.Emitter == AInstEmit.Adds)
|
|
||||||
{
|
|
||||||
Emit(OpCodes.Neg);
|
|
||||||
}
|
|
||||||
|
|
||||||
ILOp = BranchOps[Cond];
|
ILOp = BranchOps[Cond];
|
||||||
}
|
}
|
||||||
else if (IntCond < 14)
|
else if (IntCond < 14)
|
||||||
|
|||||||
Reference in new issue
Block a user