From 302e11cd974255eafd80ee4fdf52054a00b3e4be Mon Sep 17 00:00:00 2001 From: Kang Zhang Date: Fri, 24 Apr 2020 08:03:02 +0000 Subject: [PATCH] [NFC][PowerPC] Fix the liveins for 3 mir test cases --- llvm/test/CodeGen/PowerPC/prolog_vec_spills.mir | 1 - llvm/test/CodeGen/PowerPC/setcr_bc2.mir | 6 +++--- llvm/test/CodeGen/PowerPC/setcr_bc3.mir | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/llvm/test/CodeGen/PowerPC/prolog_vec_spills.mir b/llvm/test/CodeGen/PowerPC/prolog_vec_spills.mir index 59df0e1..ddd4590 100644 --- a/llvm/test/CodeGen/PowerPC/prolog_vec_spills.mir +++ b/llvm/test/CodeGen/PowerPC/prolog_vec_spills.mir @@ -45,7 +45,6 @@ body: | B %bb.3 bb.2: - liveins: $x3 $r3 = IMPLICIT_DEF bb.3: diff --git a/llvm/test/CodeGen/PowerPC/setcr_bc2.mir b/llvm/test/CodeGen/PowerPC/setcr_bc2.mir index 87fff32..582284d 100644 --- a/llvm/test/CodeGen/PowerPC/setcr_bc2.mir +++ b/llvm/test/CodeGen/PowerPC/setcr_bc2.mir @@ -78,10 +78,10 @@ body: | successors: %bb.2(0x30000000), %bb.1(0x50000000) liveins: $x3, $x30 - ; bc should be converted into b, but creqv (CRSET) should not be removed since it is used in a predecessor. + ; bc should be converted into b, and creqv (CRSET) should be removed since it isn't used. ; CHECK-LABEL: func ; CHECK: # %bb.1 - ; CHECK: creqv + ; CHECK-NOT: creqv ; CHECK-NOT: bc ; CHECK: .LBB0_2 @@ -112,7 +112,7 @@ body: | BL8_NOP @callee, csr_ppc64_altivec, implicit-def dead $lr8, implicit $rm, implicit killed $x3, implicit $x2, implicit-def $r1, implicit-def dead $x3 bb.5.if.end: - liveins: $x30, $cr0gt + liveins: $x30 renamable $x3 = EXTSW_32_64 killed renamable $r30, implicit $x30 $x30 = LD 32, $x1 :: (load 8 from %fixed-stack.0, align 16) diff --git a/llvm/test/CodeGen/PowerPC/setcr_bc3.mir b/llvm/test/CodeGen/PowerPC/setcr_bc3.mir index 579eeb7..bed2932 100644 --- a/llvm/test/CodeGen/PowerPC/setcr_bc3.mir +++ b/llvm/test/CodeGen/PowerPC/setcr_bc3.mir @@ -88,7 +88,7 @@ body: | BL8_NOP @callee, csr_ppc64_altivec, implicit-def dead $lr8, implicit $rm, implicit killed $x3, implicit $x2, implicit-def $r1, implicit-def dead $x3 bb.5: - liveins: $x30, $cr0gt + liveins: $x30 renamable $x3 = EXTSW_32_64 killed renamable $r30, implicit $x30 $x30 = LD 32, $x1 :: (load 8 from %fixed-stack.0, align 16) -- 2.7.4