]> granicus.if.org Git - llvm/commitdiff
[InlineAsm] Don't calculate registers for inline asm memory operands. NFCI.
authorNirav Dave <niravd@google.com>
Thu, 24 Jan 2019 17:47:18 +0000 (17:47 +0000)
committerNirav Dave <niravd@google.com>
Thu, 24 Jan 2019 17:47:18 +0000 (17:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352066 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

index f22ca4b55c327487c30b941360474b8ef5e136fe..664cc3b9900891d8041e00adec2385066df2e9b9 100644 (file)
@@ -7345,6 +7345,10 @@ static void GetRegistersForValue(SelectionDAG &DAG, const SDLoc &DL,
   SmallVector<unsigned, 4> Regs;
   const TargetRegisterInfo &TRI = *MF.getSubtarget().getRegisterInfo();
 
+  // No work to do for memory operations.
+  if (OpInfo.ConstraintType == TargetLowering::C_Memory)
+    return;
+
   // If this is a constraint for a single physreg, or a constraint for a
   // register class, find it.
   unsigned AssignedReg;