summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-09-04 22:59:30 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-09-04 22:59:30 +0000
commitade363e86c4efad741294a830a90c471200094c4 (patch)
tree33fbbf53291e0e5542bfe5f535c29ecb783b701a
parenta0658790a391c29ba4cb3a8880127fd42163fd61 (diff)
downloadbcm5719-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.cpp3
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;
OpenPOWER on IntegriCloud