File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
llvm/test/Transforms/LoopVectorize Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 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
3333entry:
@@ -44,12 +44,12 @@ for.body:
4444 br i1 %exitcond , label %for.end , label %for.body
4545
4646for.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
8080entry:
@@ -93,5 +93,5 @@ for.body:
9393 br i1 %exitcond , label %for.end , label %for.body
9494
9595for.end:
96- ret i32 poison
96+ ret void
9797}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ for.body: ; preds = %for.cond
2323 br i1 true , label %cond.false , label %land.rhs
2424
2525land.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
2828cond.false: ; preds = %for.body, %land.rhs
2929 br label %cond.end
You can’t perform that action at this time.
0 commit comments