Turn Copy into Fill in HybridAllocator (#2010)

* Turn Copy into Fill in HybridAllocator

* Set PTC internal verison
This commit is contained in:
FICTURE7
2021-02-21 21:33:59 +04:00
committed by GitHub
parent 8cdb50d703
commit 1586880114
2 changed files with 10 additions and 1 deletions

View File

@ -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
{
Operand temp = info.Temp;