diff options
author | Dan Gohman <gohman@apple.com> | 2008-02-16 00:25:40 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-02-16 00:25:40 +0000 |
commit | 94ebde1d45dcd7e209663c49a1cf1a4589191df1 (patch) | |
tree | de784062165173539818046c5d89e5efab540de6 /lib/CodeGen/SelectionDAG | |
parent | d1bb1c2765d010526cf0565b28877542cc4bfd90 (diff) |
Revert 47177, which was incorrect.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r-- | lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp index e00139052c..2cda59758c 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp @@ -431,7 +431,7 @@ SUnit *ScheduleDAGRRList::CopyAndMoveSuccessors(SUnit *SU) { SUnit *NewSU = NewSUnit(N); SUnitMap[N].push_back(NewSU); const TargetInstrDesc &TID = TII->get(N->getTargetOpcode()); - for (unsigned i = TID.getNumDefs(); i != TID.getNumOperands(); ++i) { + for (unsigned i = 0; i != TID.getNumOperands(); ++i) { if (TID.getOperandConstraint(i, TOI::TIED_TO) != -1) { NewSU->isTwoAddress = true; break; |