diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-09-04 22:59:30 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-09-04 22:59:30 +0000 |
commit | ade363e86c4efad741294a830a90c471200094c4 (patch) | |
tree | 33fbbf53291e0e5542bfe5f535c29ecb783b701a | |
parent | a0658790a391c29ba4cb3a8880127fd42163fd61 (diff) | |
download | bcm5719-llvm-ade363e86c4efad741294a830a90c471200094c4.tar.gz bcm5719-llvm-ade363e86c4efad741294a830a90c471200094c4.zip |
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
-rw-r--r-- | llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index e1d0d30458f..bd12f921328 100644 --- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -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; |