[ARM][MachineOutliner] Fix no-lr-save testcase.
authorYvan Roux <yvan.roux@linaro.org>
Mon, 15 Jun 2020 14:03:56 +0000 (16:03 +0200)
committerYvan Roux <yvan.roux@linaro.org>
Mon, 15 Jun 2020 14:09:31 +0000 (16:09 +0200)
Now that saving LR into a register is handled, some register constraints
are needed to keep machine-outliner-no-lr-save.mir meaningful.

llvm/test/CodeGen/ARM/machine-outliner-no-lr-save.mir

index 950172e..678633d 100644 (file)
@@ -118,6 +118,7 @@ body:             |
     $r4 = t2MOVi 3, 14, $noreg, $noreg
     tBL 14, $noreg, @foo
   bb.2:
+    liveins: $lr, $r0, $r6, $r7, $r8, $r9, $r10, $r11
     tBX_RET 14, $noreg
 
   ; CHECK-LABEL: name: OUTLINED_FUNCTION_0