Optimize CMN/ADDS to do a single comparision like CMP/SUBS (#576)

This commit is contained in:
gdkchan 2019-02-18 01:17:34 -03:00 committed by jduncanator
parent 17ac118946
commit 948a758270
2 changed files with 49 additions and 9 deletions

View file

@ -51,6 +51,8 @@ namespace ChocolArm64.Instructions
public static void Adds(ILEmitterCtx context)
{
context.TryOptMarkCondWithoutCmp();
EmitAluLoadOpers(context);
context.Emit(OpCodes.Add);