summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-10-28 01:13:53 +0000
committerDan Gohman <gohman@apple.com>2009-10-28 01:13:53 +0000
commit4b46cbfc23f279c860eaa72f9ac75830b47527be (patch)
tree1c44f3dfa5954726de61d71ba8be364418527831 /llvm/lib
parent75d6a4afd29f93e3cd40bff7bf374e594da515d6 (diff)
downloadbcm5719-llvm-4b46cbfc23f279c860eaa72f9ac75830b47527be.tar.gz
bcm5719-llvm-4b46cbfc23f279c860eaa72f9ac75830b47527be.zip
Mark dead physregdefs dead immediately. This helps MachineSink and
MachineLICM and other things which run before LiveVariables is run. llvm-svn: 85360
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp b/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
index d3ffb2a22d9..425f670763a 100644
--- a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
@@ -571,6 +571,8 @@ void InstrEmitter::EmitNode(SDNode *Node, bool IsClone, bool IsCloned,
unsigned Reg = II.getImplicitDefs()[i - II.getNumDefs()];
if (Node->hasAnyUseOfValue(i))
EmitCopyFromReg(Node, i, IsClone, IsCloned, Reg, VRBaseMap);
+ else
+ MI->addRegisterDead(Reg, TRI);
}
}
return;
OpenPOWER on IntegriCloud