Turn Copy into Fill in HybridAllocator (#2010)
* Turn Copy into Fill in HybridAllocator * Set PTC internal verison
This commit is contained in:
parent
8cdb50d703
commit
1586880114
@ -236,6 +236,15 @@ namespace ARMeilleure.CodeGen.RegisterAllocators
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (node is Operation operation && operation.Instruction == Instruction.Copy)
|
||||||
|
{
|
||||||
|
Operation fillOp = Operation(Instruction.Fill, node.Destination, Const(info.SpillOffset));
|
||||||
|
|
||||||
|
block.Operations.AddBefore(node, fillOp);
|
||||||
|
block.Operations.Remove(node);
|
||||||
|
|
||||||
|
node = fillOp;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Operand temp = info.Temp;
|
Operand temp = info.Temp;
|
||||||
|
@ -22,7 +22,7 @@ namespace ARMeilleure.Translation.PTC
|
|||||||
{
|
{
|
||||||
private const string HeaderMagic = "PTChd";
|
private const string HeaderMagic = "PTChd";
|
||||||
|
|
||||||
private const int InternalVersion = 2026; //! To be incremented manually for each change to the ARMeilleure project.
|
private const int InternalVersion = 2010; //! To be incremented manually for each change to the ARMeilleure project.
|
||||||
|
|
||||||
private const string ActualDir = "0";
|
private const string ActualDir = "0";
|
||||||
private const string BackupDir = "1";
|
private const string BackupDir = "1";
|
||||||
|
Loading…
Reference in New Issue
Block a user