Skip to content

Commit 12ec050

Browse files
committed
[LV] Remove some unnecessary uses of poison from tests.
1 parent c0e0a33 commit 12ec050

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

llvm/test/Transforms/LoopVectorize/SystemZ/addressing.ll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
; Check that the addresses for a scalarized memory access is not extracted
88
; from a vector register.
9-
define i32 @foo(ptr nocapture %A) {
9+
define void @foo(ptr nocapture %A) {
1010
; CHECK-LABEL: @foo(
1111
; CHECK-NEXT: entry:
1212
; CHECK-NEXT: br label [[VECTOR_PH:%.*]]
@@ -27,7 +27,7 @@ define i32 @foo(ptr nocapture %A) {
2727
; CHECK: middle.block:
2828
; CHECK-NEXT: br label [[FOR_BODY:%.*]]
2929
; CHECK: for.end:
30-
; CHECK-NEXT: ret i32 poison
30+
; CHECK-NEXT: ret void
3131
;
3232

3333
entry:
@@ -44,12 +44,12 @@ for.body:
4444
br i1 %exitcond, label %for.end, label %for.body
4545

4646
for.end:
47-
ret i32 poison
47+
ret void
4848
}
4949

5050

5151
; Check that a load of address is scalarized.
52-
define i32 @foo1(ptr nocapture noalias %A, ptr nocapture %PtrPtr) {
52+
define void @foo1(ptr nocapture noalias %A, ptr nocapture %PtrPtr) {
5353
; CHECK-LABEL: @foo1(
5454
; CHECK-NEXT: entry:
5555
; CHECK-NEXT: br label [[VECTOR_PH:%.*]]
@@ -74,7 +74,7 @@ define i32 @foo1(ptr nocapture noalias %A, ptr nocapture %PtrPtr) {
7474
; CHECK: middle.block:
7575
; CHECK-NEXT: br label [[FOR_BODY:%.*]]
7676
; CHECK: for.end:
77-
; CHECK-NEXT: ret i32 poison
77+
; CHECK-NEXT: ret void
7878
;
7979

8080
entry:
@@ -93,5 +93,5 @@ for.body:
9393
br i1 %exitcond, label %for.end, label %for.body
9494

9595
for.end:
96-
ret i32 poison
96+
ret void
9797
}

llvm/test/Transforms/LoopVectorize/pr48832.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ for.body: ; preds = %for.cond
2323
br i1 true, label %cond.false, label %land.rhs
2424

2525
land.rhs: ; preds = %for.body
26-
br i1 poison, label %cond.end, label %cond.false
26+
br i1 false, label %cond.end, label %cond.false
2727

2828
cond.false: ; preds = %for.body, %land.rhs
2929
br label %cond.end

0 commit comments

Comments
 (0)