summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-02-16 00:25:40 +0000
committerDan Gohman <gohman@apple.com>2008-02-16 00:25:40 +0000
commit856c01204b112b200332d9b96c61658aacf91944 (patch)
treedad59e0e0282a0511f304e37f534872ccdf0ac4f /llvm/lib/CodeGen
parent214260e04aa71f02f67c3f0703e495c6eda04e1a (diff)
downloadbcm5719-llvm-856c01204b112b200332d9b96c61658aacf91944.tar.gz
bcm5719-llvm-856c01204b112b200332d9b96c61658aacf91944.zip
Revert 47177, which was incorrect.
llvm-svn: 47196
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
index e00139052c2..2cda59758ce 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud