1
1
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2025-08-23 05:26:26 -05:00

Reduce allocation during SSA construction (#2162)

* Reduce allocation during SSA construction

* Re-trigger CI
This commit is contained in:
FICTURE7
2021-04-02 21:26:16 +04:00
committed by GitHub
parent 529df341f1
commit 8b3eba7e13
2 changed files with 111 additions and 127 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace ARMeilleure.IntermediateRepresentation
{
@@ -84,6 +85,7 @@ namespace ARMeilleure.IntermediateRepresentation
return With(OperandKind.Register, type, (ulong)((int)regType << 24 | index));
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public Register GetRegister()
{
return new Register((int)Value & 0xffffff, (RegisterType)(Value >> 24));