forked from OSchip/llvm-project
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:
parent
a0658790a3
commit
ade363e86c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue