[llvm] r332367 - [AArch64] Fix mir test case liveins info.

Geoff Berry via llvm-commits llvm-commits at lists.llvm.org
Tue May 15 09:27:34 PDT 2018


Author: gberry
Date: Tue May 15 09:27:34 2018
New Revision: 332367

URL: http://llvm.org/viewvc/llvm-project?rev=332367&view=rev
Log:
[AArch64] Fix mir test case liveins info.

The test case added in r332265 had incomplete livein information which
was caught by the EXPENSIVE_CHECKS bot.  Fix the livein information and
add -verify-machineinstrs to the test case.

Modified:
    llvm/trunk/test/CodeGen/AArch64/branch-folder-oneinst.mir

Modified: llvm/trunk/test/CodeGen/AArch64/branch-folder-oneinst.mir
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AArch64/branch-folder-oneinst.mir?rev=332367&r1=332366&r2=332367&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/AArch64/branch-folder-oneinst.mir (original)
+++ llvm/trunk/test/CodeGen/AArch64/branch-folder-oneinst.mir Tue May 15 09:27:34 2018
@@ -1,4 +1,4 @@
-# RUN: llc -o - %s -mtriple=aarch64 -run-pass branch-folder | FileCheck %s
+# RUN: llc -o - %s -mtriple=aarch64 -run-pass branch-folder -verify-machineinstrs | FileCheck %s
 # Check that BranchFolding pass is able to hoist a common instruction into a block with a single branch instruction.
 name: func
 tracksRegLiveness: true
@@ -8,7 +8,7 @@ body: |
     ; CHECK-LABEL: bb.0:
     ; CHECK: $x0 = ADDXri $x0, 1, 0
     ; CHECK: CBZX $x1, %bb.2
-    liveins: $x1
+    liveins: $x0, $x1
     CBZX $x1, %bb.2
 
   bb.1:




More information about the llvm-commits mailing list