Skip to content

Commit 302e11c

Browse files
committed
[NFC][PowerPC] Fix the liveins for 3 mir test cases
1 parent 1dfc473 commit 302e11c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

llvm/test/CodeGen/PowerPC/prolog_vec_spills.mir

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ body: |
4545
B %bb.3
4646
4747
bb.2:
48-
liveins: $x3
4948
$r3 = IMPLICIT_DEF
5049
5150
bb.3:

llvm/test/CodeGen/PowerPC/setcr_bc2.mir

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ body: |
7878
successors: %bb.2(0x30000000), %bb.1(0x50000000)
7979
liveins: $x3, $x30
8080
81-
; bc should be converted into b, but creqv (CRSET) should not be removed since it is used in a predecessor.
81+
; bc should be converted into b, and creqv (CRSET) should be removed since it isn't used.
8282
; CHECK-LABEL: func
8383
; CHECK: # %bb.1
84-
; CHECK: creqv
84+
; CHECK-NOT: creqv
8585
; CHECK-NOT: bc
8686
; CHECK: .LBB0_2
8787
@@ -112,7 +112,7 @@ body: |
112112
BL8_NOP @callee, csr_ppc64_altivec, implicit-def dead $lr8, implicit $rm, implicit killed $x3, implicit $x2, implicit-def $r1, implicit-def dead $x3
113113
114114
bb.5.if.end:
115-
liveins: $x30, $cr0gt
115+
liveins: $x30
116116
117117
renamable $x3 = EXTSW_32_64 killed renamable $r30, implicit $x30
118118
$x30 = LD 32, $x1 :: (load 8 from %fixed-stack.0, align 16)

llvm/test/CodeGen/PowerPC/setcr_bc3.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ body: |
8888
BL8_NOP @callee, csr_ppc64_altivec, implicit-def dead $lr8, implicit $rm, implicit killed $x3, implicit $x2, implicit-def $r1, implicit-def dead $x3
8989
9090
bb.5:
91-
liveins: $x30, $cr0gt
91+
liveins: $x30
9292
9393
renamable $x3 = EXTSW_32_64 killed renamable $r30, implicit $x30
9494
$x30 = LD 32, $x1 :: (load 8 from %fixed-stack.0, align 16)

0 commit comments

Comments
 (0)