diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-12-14 08:25:15 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-12-14 08:25:15 +0000 |
commit | 4f0345c285f0194616be756b6138d40f810b0984 (patch) | |
tree | 4b85392af822ef7d2aa8609b1a88774c1d3e6132 /lib/CodeGen | |
parent | 84894fcd78d148ad5b41a95b02493a2bd6b43b45 (diff) | |
download | external_llvm-4f0345c285f0194616be756b6138d40f810b0984.zip external_llvm-4f0345c285f0194616be756b6138d40f810b0984.tar.gz external_llvm-4f0345c285f0194616be756b6138d40f810b0984.tar.bz2 |
Bug fix. Must also match ResNo when matching an operand with a user.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index ec84b70..2b8965b 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp @@ -326,7 +326,7 @@ void ScheduleDAG::EmitCopyFromReg(SDNode *Node, unsigned ResNo, } else { for (unsigned i = 0, e = Use->getNumOperands(); i != e; ++i) { SDOperand Op = Use->getOperand(i); - if (Op.Val != Node) + if (Op.Val != Node || Op.ResNo != ResNo) continue; MVT::ValueType VT = Node->getValueType(Op.ResNo); if (VT != MVT::Other && VT != MVT::Flag) |