Search the whole instruction for tied operands.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 4 Sep 2012 22:59:30 +0000 (22:59 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 4 Sep 2012 22:59:30 +0000 (22:59 +0000)
Implicit uses can be dynamically tied to defs. This will soon be used
for predicated instructions on ARM.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163177 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TwoAddressInstructionPass.cpp

index e1d0d30458f8eae86055afcd8599ca6c4b5ea418..bd12f921328741756dcbe331cf4582e3a8736e44 100644 (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;