summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-02-15 20:59:17 +0000
committerDan Gohman <gohman@apple.com>2008-02-15 20:59:17 +0000
commitc278c4aba0a7b569c0930fc8113586989efc7989 (patch)
tree54227fee93da537d5e43a3897a458a567455b8f0 /llvm/lib
parent0340d1e2cd74c2f8e419c7950f835b868f593bd4 (diff)
downloadbcm5719-llvm-c278c4aba0a7b569c0930fc8113586989efc7989.tar.gz
bcm5719-llvm-c278c4aba0a7b569c0930fc8113586989efc7989.zip
Skip over the defs and start at the uses when looking for operands
with the TIED_TO attribute. llvm-svn: 47177
Diffstat (limited to 'llvm/lib')
-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 2cda59758ce..e00139052c2 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 = 0; i != TID.getNumOperands(); ++i) {
+ for (unsigned i = TID.getNumDefs(); i != TID.getNumOperands(); ++i) {
if (TID.getOperandConstraint(i, TOI::TIED_TO) != -1) {
NewSU->isTwoAddress = true;
break;
OpenPOWER on IntegriCloud