[llvm-commits] [llvm] r45028 - /llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
Evan Cheng
evan.cheng at apple.com
Fri Dec 14 00:25:16 PST 2007
Author: evancheng
Date: Fri Dec 14 02:25:15 2007
New Revision: 45028
URL: http://llvm.org/viewvc/llvm-project?rev=45028&view=rev
Log:
Bug fix. Must also match ResNo when matching an operand with a user.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp?rev=45028&r1=45027&r2=45028&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp Fri Dec 14 02:25:15 2007
@@ -326,7 +326,7 @@
} 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)
More information about the llvm-commits
mailing list