diff options
author | Dan Gohman <djg@cray.com> | 2008-02-15 20:59:17 +0000 |
---|---|---|
committer | Dan Gohman <djg@cray.com> | 2008-02-15 20:59:17 +0000 |
commit | 3583a99f40a551d72661c278fb5a05951cf54709 (patch) | |
tree | 860295dc85851f443316167c3ca0277a838c559f /lib | |
parent | 2847ed57495d317b97ecc3128a1ce15beefe9ae1 (diff) | |
download | external_llvm-3583a99f40a551d72661c278fb5a05951cf54709.zip external_llvm-3583a99f40a551d72661c278fb5a05951cf54709.tar.gz external_llvm-3583a99f40a551d72661c278fb5a05951cf54709.tar.bz2 |
Skip over the defs and start at the uses when looking for operands
with the TIED_TO attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47177 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-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 2cda597..e001390 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 = 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; |