aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-07-03 21:54:05 -0300
committerGitHub <noreply@github.com>2018-07-03 21:54:05 -0300
commitc99b2884e4eb9adfb5b893ee84d7678262d19b06 (patch)
tree420e4e6dcf7f8adae38edca8a1284f6ad75f7e38
parentc206239d28b33f6696b16639e35bf5c533de7cf9 (diff)
Remove broken adds/cmn with condition check optimization (#218)
-rw-r--r--ChocolArm64/Instruction/AInstEmitAlu.cs2
-rw-r--r--ChocolArm64/Translation/AILEmitterCtx.cs5
2 files changed, 0 insertions, 7 deletions
diff --git a/ChocolArm64/Instruction/AInstEmitAlu.cs b/ChocolArm64/Instruction/AInstEmitAlu.cs
index 0e546f7a..490387e1 100644
--- a/ChocolArm64/Instruction/AInstEmitAlu.cs
+++ b/ChocolArm64/Instruction/AInstEmitAlu.cs
@@ -50,8 +50,6 @@ namespace ChocolArm64.Instruction
public static void Adds(AILEmitterCtx Context)
{
- Context.TryOptMarkCondWithoutCmp();
-
EmitDataLoadOpers(Context);
Context.Emit(OpCodes.Add);
diff --git a/ChocolArm64/Translation/AILEmitterCtx.cs b/ChocolArm64/Translation/AILEmitterCtx.cs
index a004a966..3fa46e96 100644
--- a/ChocolArm64/Translation/AILEmitterCtx.cs
+++ b/ChocolArm64/Translation/AILEmitterCtx.cs
@@ -187,11 +187,6 @@ namespace ChocolArm64.Translation
Ldloc(Tmp3Index, AIoType.Int, OptOpLastCompare.RegisterSize);
Ldloc(Tmp4Index, AIoType.Int, OptOpLastCompare.RegisterSize);
- if (OptOpLastCompare.Emitter == AInstEmit.Adds)
- {
- Emit(OpCodes.Neg);
- }
-
ILOp = BranchOps[Cond];
}
else if (IntCond < 14)