diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-03-26 02:12:24 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-03-26 02:12:24 +0000 |
commit | ae54e1b9db4e89e926f5e73b17d388dc1eb676fa (patch) | |
tree | 6d6f5ac41197bcd992f392664f2266d1a75e43a3 /lib/CodeGen/SelectionDAG/InstrEmitter.cpp | |
parent | 81f9b983bd0dd9d73c89fc42ff39cade9377f25c (diff) | |
download | external_llvm-ae54e1b9db4e89e926f5e73b17d388dc1eb676fa.tar.gz external_llvm-ae54e1b9db4e89e926f5e73b17d388dc1eb676fa.tar.bz2 external_llvm-ae54e1b9db4e89e926f5e73b17d388dc1eb676fa.zip |
LiveVariables should clear kill / dead markers first. This allows us to remove a hack in the scheduler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99597 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/InstrEmitter.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/InstrEmitter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/InstrEmitter.cpp b/lib/CodeGen/SelectionDAG/InstrEmitter.cpp index 7b660f530f..28ba343e7f 100644 --- a/lib/CodeGen/SelectionDAG/InstrEmitter.cpp +++ b/lib/CodeGen/SelectionDAG/InstrEmitter.cpp @@ -640,9 +640,7 @@ EmitMachineNode(SDNode *Node, bool IsClone, bool IsCloned, // If the instruction has implicit defs and the node doesn't, mark the // implicit def as dead. If the node has any flag outputs, we don't do this // because we don't know what implicit defs are being used by flagged nodes. - if (Node->getValueType(Node->getNumValues()-1) != MVT::Flag && - // FIXME: This is a terrible hackaround for a liveintervals bug. - II.getNumImplicitDefs() < 8) + if (Node->getValueType(Node->getNumValues()-1) != MVT::Flag) if (const unsigned *IDList = II.getImplicitDefs()) { for (unsigned i = NumResults, e = II.getNumDefs()+II.getNumImplicitDefs(); i != e; ++i) |