mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 09:35:27 +00:00
Remove Block.TailCall since it is not used anymore
This commit is contained in:
parent
6f4cb3c0ad
commit
68bff558db
|
@ -11,8 +11,7 @@ namespace ARMeilleure.Decoders
|
||||||
public Block Next { get; set; }
|
public Block Next { get; set; }
|
||||||
public Block Branch { get; set; }
|
public Block Branch { get; set; }
|
||||||
|
|
||||||
public bool TailCall { get; set; }
|
public bool Exit { get; set; }
|
||||||
public bool Exit { get; set; }
|
|
||||||
|
|
||||||
public List<OpCode> OpCodes { get; }
|
public List<OpCode> OpCodes { get; }
|
||||||
|
|
||||||
|
|
|
@ -58,15 +58,14 @@ namespace ARMeilleure.Decoders.Optimizations
|
||||||
return blocks.ToArray(); // Nothing to do here.
|
return blocks.ToArray(); // Nothing to do here.
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mark branches outside of contiguous region as exit blocks.
|
// Mark branches whose target is outside of the contiguous region as an exit block.
|
||||||
for (int i = startBlockIndex; i <= endBlockIndex; i++)
|
for (int i = startBlockIndex; i <= endBlockIndex; i++)
|
||||||
{
|
{
|
||||||
Block block = blocks[i];
|
Block block = blocks[i];
|
||||||
|
|
||||||
if (block.Branch != null && (block.Branch.Address > endBlock.EndAddress || block.Branch.EndAddress < startBlock.Address))
|
if (block.Branch != null && (block.Branch.Address > endBlock.EndAddress || block.Branch.EndAddress < startBlock.Address))
|
||||||
{
|
{
|
||||||
block.Branch.Exit = true;
|
block.Branch.Exit = true;
|
||||||
block.Branch.TailCall = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue