mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 20:12:56 +02:00
Skip over the defs and start at the uses when looking for operands
with the TIED_TO attribute. llvm-svn: 47177
This commit is contained in:
parent
06ac7aca3e
commit
547cd33955
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user