Search the whole instruction for tied operands.

Implicit uses can be dynamically tied to defs. This will soon be used
for predicated instructions on ARM.

llvm-svn: 163177
This commit is contained in:
Jakob Stoklund Olesen 2012-09-04 22:59:30 +00:00
parent a0658790a3
commit ade363e86c
1 changed files with 1 additions and 2 deletions

View File

@ -1202,8 +1202,7 @@ bool TwoAddressInstructionPass::
collectTiedOperands(MachineInstr *MI, TiedOperandMap &TiedOperands) {
const MCInstrDesc &MCID = MI->getDesc();
bool AnyOps = false;
unsigned NumOps = MI->isInlineAsm() ?
MI->getNumOperands() : MCID.getNumOperands();
unsigned NumOps = MI->getNumOperands();
for (unsigned SrcIdx = 0; SrcIdx < NumOps; ++SrcIdx) {
unsigned DstIdx = 0;