mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +00:00
Do not emit copies for physical register output if it's not used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40722 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -676,7 +676,8 @@ void ScheduleDAG::EmitNode(SDNode *Node,
|
||||
if (HasPhysRegOuts) {
|
||||
for (unsigned i = II.numDefs; i < NumResults; ++i) {
|
||||
unsigned Reg = II.ImplicitDefs[i - II.numDefs];
|
||||
EmitCopyFromReg(Node, i, Reg, VRBaseMap);
|
||||
if (Node->hasAnyUseOfValue(i))
|
||||
EmitCopyFromReg(Node, i, Reg, VRBaseMap);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user