0
0
Fork 0

Remove broken adds/cmn with condition check optimization (#218)

This commit is contained in:
gdkchan 2018-07-03 21:54:05 -03:00 committed by GitHub
parent c206239d28
commit c99b2884e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 7 deletions

View file

@ -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);

View file

@ -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)