[llvm] 302e11c - [NFC][PowerPC] Fix the liveins for 3 mir test cases
Kang Zhang via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 24 01:03:31 PDT 2020
Author: Kang Zhang
Date: 2020-04-24T08:03:02Z
New Revision: 302e11cd974255eafd80ee4fdf52054a00b3e4be
URL: https://github.com/llvm/llvm-project/commit/302e11cd974255eafd80ee4fdf52054a00b3e4be
DIFF: https://github.com/llvm/llvm-project/commit/302e11cd974255eafd80ee4fdf52054a00b3e4be.diff
LOG: [NFC][PowerPC] Fix the liveins for 3 mir test cases
Added:
Modified:
llvm/test/CodeGen/PowerPC/prolog_vec_spills.mir
llvm/test/CodeGen/PowerPC/setcr_bc2.mir
llvm/test/CodeGen/PowerPC/setcr_bc3.mir
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/PowerPC/prolog_vec_spills.mir b/llvm/test/CodeGen/PowerPC/prolog_vec_spills.mir
index 59df0e1cf606..ddd459044cdb 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 87fff32573df..582284d6d0a5 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 579eeb7dd0eb..bed2932fd950 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)
More information about the llvm-commits
mailing list