Skip to content

Commit b7fc782

Browse files
committed
Revert rG2047ab00eaf0a17e71ce5e8a5b27a8c90f034c3d "[VPlan] Add a test for testing unused interleave recipes (#75026)"
vplan-unused-interleave-group.ll is causing buildbot failures
1 parent 2952bc3 commit b7fc782

File tree

3 files changed

+38
-90
lines changed

3 files changed

+38
-90
lines changed

llvm/test/CodeGen/ARM/loopvectorize_pr33804.ll

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ target triple = "armv7-unknown-linux-gnueabihf"
1515
; CHECK-LABEL: @cvCalcEMD2
1616
; CHECK: vector.body
1717
; CHECK: store <{{[0-9]+}} x ptr>
18-
define void @cvCalcEMD2(ptr %dst) {
18+
define void @cvCalcEMD2() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
1919
entry:
2020
br label %for.body14.i.i
2121

2222
for.body14.i.i: ; preds = %for.body14.i.i, %entry
2323
%i.1424.i.i = phi i32 [ %inc21.i.i, %for.body14.i.i ], [ 0, %entry ]
24-
%arrayidx15.i.i1427 = getelementptr inbounds %struct.CvNode1D, ptr %dst, i32 %i.1424.i.i
24+
%arrayidx15.i.i1427 = getelementptr inbounds %struct.CvNode1D, ptr undef, i32 %i.1424.i.i
2525
store float 0xC415AF1D80000000, ptr %arrayidx15.i.i1427, align 4
26-
%next19.i.i = getelementptr inbounds %struct.CvNode1D, ptr %dst, i32 %i.1424.i.i, i32 1
27-
store ptr %dst, ptr %next19.i.i, align 4
26+
%next19.i.i = getelementptr inbounds %struct.CvNode1D, ptr undef, i32 %i.1424.i.i, i32 1
27+
store ptr undef, ptr %next19.i.i, align 4
2828
%inc21.i.i = add nuw nsw i32 %i.1424.i.i, 1
2929
%exitcond438.i.i = icmp eq i32 %inc21.i.i, 0
3030
br i1 %exitcond438.i.i, label %for.end22.i.i, label %for.body14.i.i
@@ -40,15 +40,15 @@ for.end22.i.i: ; preds = %for.body14.i.i
4040
; CHECK-LABEL: @cvCalcEMD2_2
4141
; CHECK: vector.body
4242
; CHECK: store <{{[0-9]+}} x float>
43-
define void @cvCalcEMD2_2(ptr %dst) {
43+
define void @cvCalcEMD2_2() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
4444
entry:
4545
br label %for.body14.i.i
4646

4747
for.body14.i.i: ; preds = %for.body14.i.i, %entry
4848
%i.1424.i.i = phi i32 [ %inc21.i.i, %for.body14.i.i ], [ 0, %entry ]
49-
%next19.i.i = getelementptr inbounds %struct.CvNode1D2, ptr %dst, i32 %i.1424.i.i, i32 0
50-
store ptr %dst, ptr %next19.i.i, align 4
51-
%arrayidx15.i.i1427 = getelementptr inbounds %struct.CvNode1D2, ptr %dst, i32 %i.1424.i.i
49+
%next19.i.i = getelementptr inbounds %struct.CvNode1D2, ptr undef, i32 %i.1424.i.i, i32 0
50+
store ptr undef, ptr %next19.i.i, align 4
51+
%arrayidx15.i.i1427 = getelementptr inbounds %struct.CvNode1D2, ptr undef, i32 %i.1424.i.i
5252
%val.i.i = getelementptr inbounds %struct.CvNode1D2, ptr %arrayidx15.i.i1427, i32 0, i32 1
5353
store float 0xC415AF1D80000000, ptr %val.i.i, align 4
5454
%inc21.i.i = add nuw nsw i32 %i.1424.i.i, 1
@@ -64,20 +64,16 @@ for.end22.i.i: ; preds = %for.body14.i.i
6464
; CHECK-LABEL: @cvCalcEMD3
6565
; CHECK: vector.body
6666
; CHECK: inttoptr <{{[0-9]+}} x i32>
67-
define void @cvCalcEMD3(ptr %src, ptr %dst) {
67+
define void @cvCalcEMD3() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
6868
entry:
6969
br label %for.body14.i.i
7070

7171
for.body14.i.i: ; preds = %for.body14.i.i, %entry
7272
%i.1424.i.i = phi i32 [ %inc21.i.i, %for.body14.i.i ], [ 0, %entry ]
73-
%arrayidx15.i.i1427 = getelementptr inbounds %struct.CvNode1D, ptr %src, i32 %i.1424.i.i
73+
%arrayidx15.i.i1427 = getelementptr inbounds %struct.CvNode1D, ptr undef, i32 %i.1424.i.i
7474
%loadf = load float, ptr %arrayidx15.i.i1427, align 4
75-
%next19.i.i = getelementptr inbounds %struct.CvNode1D, ptr %src, i32 %i.1424.i.i, i32 1
75+
%next19.i.i = getelementptr inbounds %struct.CvNode1D, ptr undef, i32 %i.1424.i.i, i32 1
7676
%loadp = load ptr, ptr %next19.i.i, align 4
77-
%dst.ptr = getelementptr inbounds %struct.CvNode1D, ptr %dst, i32 %i.1424.i.i
78-
%dst.ptr.1 = getelementptr inbounds %struct.CvNode1D, ptr %dst, i32 %i.1424.i.i, i32 1
79-
store float %loadf, ptr %dst.ptr, align 4
80-
store ptr %loadp, ptr %dst.ptr.1, align 4
8177
%inc21.i.i = add nuw nsw i32 %i.1424.i.i, 1
8278
%exitcond438.i.i = icmp eq i32 %inc21.i.i, 0
8379
br i1 %exitcond438.i.i, label %for.end22.i.i, label %for.body14.i.i
@@ -91,25 +87,26 @@ for.end22.i.i: ; preds = %for.body14.i.i
9187
; CHECK-LABEL: @cvCalcEMD3_2
9288
; CHECK: vector.body
9389
; CHECK: ptrtoint <{{[0-9]+}} x ptr>
94-
define void @cvCalcEMD3_2(ptr %src, ptr %dst) {
90+
define void @cvCalcEMD3_2() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
9591
entry:
9692
br label %for.body14.i.i
9793

9894
for.body14.i.i: ; preds = %for.body14.i.i, %entry
9995
%i.1424.i.i = phi i32 [ %inc21.i.i, %for.body14.i.i ], [ 0, %entry ]
100-
%next19.i.i = getelementptr inbounds %struct.CvNode1D2, ptr %src, i32 %i.1424.i.i, i32 0
96+
%next19.i.i = getelementptr inbounds %struct.CvNode1D2, ptr undef, i32 %i.1424.i.i, i32 0
10197
%loadp = load ptr, ptr %next19.i.i, align 4
102-
%arrayidx15.i.i1427 = getelementptr inbounds %struct.CvNode1D2, ptr %src, i32 %i.1424.i.i
98+
%arrayidx15.i.i1427 = getelementptr inbounds %struct.CvNode1D2, ptr undef, i32 %i.1424.i.i
10399
%val.i.i = getelementptr inbounds %struct.CvNode1D2, ptr %arrayidx15.i.i1427, i32 0, i32 1
104100
%loadf = load float, ptr %val.i.i, align 4
105-
%dst.ptr = getelementptr inbounds %struct.CvNode1D, ptr %dst, i32 %i.1424.i.i
106-
%dst.ptr.1 = getelementptr inbounds %struct.CvNode1D, ptr %dst, i32 %i.1424.i.i, i32 1
107-
store float %loadf, ptr %dst.ptr, align 4
108-
store ptr %loadp, ptr %dst.ptr.1, align 4
109101
%inc21.i.i = add nuw nsw i32 %i.1424.i.i, 1
110102
%exitcond438.i.i = icmp eq i32 %inc21.i.i, 0
111103
br i1 %exitcond438.i.i, label %for.end22.i.i, label %for.body14.i.i
112104

113105
for.end22.i.i: ; preds = %for.body14.i.i
114106
unreachable
115107
}
108+
109+
declare i32 @__gxx_personality_v0(...)
110+
111+
attributes #0 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+dsp,+neon,+vfp3,-thumb-mode" "unsafe-fp-math"="false" "use-soft-float"="false" }
112+

llvm/test/Transforms/LoopVectorize/AArch64/loopvectorize_pr33804_double.ll

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ target triple = "aarch64-unknown-linux-gnu"
1515
; CHECK-LABEL: @cvCalcEMD2
1616
; CHECK: vector.body
1717
; CHECK: store <{{[0-9]+}} x ptr>
18-
define void @cvCalcEMD2(ptr %dst) {
18+
define void @cvCalcEMD2() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
1919
entry:
2020
br label %for.body14.i.i
2121

2222
for.body14.i.i: ; preds = %for.body14.i.i, %entry
2323
%i.1424.i.i = phi i32 [ %inc21.i.i, %for.body14.i.i ], [ 0, %entry ]
24-
%arrayidx15.i.i1427 = getelementptr inbounds %struct.CvNode1D, ptr %dst, i32 %i.1424.i.i
24+
%arrayidx15.i.i1427 = getelementptr inbounds %struct.CvNode1D, ptr undef, i32 %i.1424.i.i
2525
store double 0xC415AF1D80000000, ptr %arrayidx15.i.i1427, align 4
26-
%next19.i.i = getelementptr inbounds %struct.CvNode1D, ptr %dst, i32 %i.1424.i.i, i32 1
27-
store ptr %dst, ptr %next19.i.i, align 4
26+
%next19.i.i = getelementptr inbounds %struct.CvNode1D, ptr undef, i32 %i.1424.i.i, i32 1
27+
store ptr undef, ptr %next19.i.i, align 4
2828
%inc21.i.i = add nuw nsw i32 %i.1424.i.i, 1
2929
%exitcond438.i.i = icmp eq i32 %inc21.i.i, 0
3030
br i1 %exitcond438.i.i, label %for.end22.i.i, label %for.body14.i.i
@@ -40,15 +40,15 @@ for.end22.i.i: ; preds = %for.body14.i.i
4040
; CHECK-LABEL: @cvCalcEMD2_2
4141
; CHECK: vector.body
4242
; CHECK: store <{{[0-9]+}} x double>
43-
define void @cvCalcEMD2_2(ptr %dst) {
43+
define void @cvCalcEMD2_2() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
4444
entry:
4545
br label %for.body14.i.i
4646

4747
for.body14.i.i: ; preds = %for.body14.i.i, %entry
4848
%i.1424.i.i = phi i32 [ %inc21.i.i, %for.body14.i.i ], [ 0, %entry ]
49-
%next19.i.i = getelementptr inbounds %struct.CvNode1D2, ptr %dst, i32 %i.1424.i.i, i32 0
50-
store ptr %dst, ptr %next19.i.i, align 4
51-
%arrayidx15.i.i1427 = getelementptr inbounds %struct.CvNode1D2, ptr %dst, i32 %i.1424.i.i
49+
%next19.i.i = getelementptr inbounds %struct.CvNode1D2, ptr undef, i32 %i.1424.i.i, i32 0
50+
store ptr undef, ptr %next19.i.i, align 4
51+
%arrayidx15.i.i1427 = getelementptr inbounds %struct.CvNode1D2, ptr undef, i32 %i.1424.i.i
5252
%val.i.i = getelementptr inbounds %struct.CvNode1D2, ptr %arrayidx15.i.i1427, i32 0, i32 1
5353
store double 0xC415AF1D80000000, ptr %val.i.i, align 4
5454
%inc21.i.i = add nuw nsw i32 %i.1424.i.i, 1
@@ -64,20 +64,16 @@ for.end22.i.i: ; preds = %for.body14.i.i
6464
; CHECK-LABEL: @cvCalcEMD3
6565
; CHECK: vector.body
6666
; CHECK: inttoptr <{{[0-9]+}} x i64>
67-
define void @cvCalcEMD3(ptr %src, ptr %dst) {
67+
define void @cvCalcEMD3() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
6868
entry:
6969
br label %for.body14.i.i
7070

7171
for.body14.i.i: ; preds = %for.body14.i.i, %entry
7272
%i.1424.i.i = phi i32 [ %inc21.i.i, %for.body14.i.i ], [ 0, %entry ]
73-
%arrayidx15.i.i1427 = getelementptr inbounds %struct.CvNode1D, ptr %src, i32 %i.1424.i.i
73+
%arrayidx15.i.i1427 = getelementptr inbounds %struct.CvNode1D, ptr undef, i32 %i.1424.i.i
7474
%load_d = load double, ptr %arrayidx15.i.i1427, align 4
75-
%next19.i.i = getelementptr inbounds %struct.CvNode1D, ptr %src, i32 %i.1424.i.i, i32 1
75+
%next19.i.i = getelementptr inbounds %struct.CvNode1D, ptr undef, i32 %i.1424.i.i, i32 1
7676
%load_p = load ptr, ptr %next19.i.i, align 4
77-
%dst.ptr = getelementptr inbounds %struct.CvNode1D, ptr %dst, i32 %i.1424.i.i
78-
%dst.ptr.1 = getelementptr inbounds %struct.CvNode1D, ptr %dst, i32 %i.1424.i.i, i32 1
79-
store double %load_d, ptr %dst.ptr, align 4
80-
store ptr %load_p, ptr %dst.ptr.1, align 4
8177
%inc21.i.i = add nuw nsw i32 %i.1424.i.i, 1
8278
%exitcond438.i.i = icmp eq i32 %inc21.i.i, 0
8379
br i1 %exitcond438.i.i, label %for.end22.i.i, label %for.body14.i.i
@@ -91,25 +87,26 @@ for.end22.i.i: ; preds = %for.body14.i.i
9187
; CHECK-LABEL: @cvCalcEMD3_2
9288
; CHECK: vector.body
9389
; CHECK: ptrtoint <{{[0-9]+}} x ptr>
94-
define void @cvCalcEMD3_2(ptr %src, ptr %dst) {
90+
define void @cvCalcEMD3_2() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
9591
entry:
9692
br label %for.body14.i.i
9793

9894
for.body14.i.i: ; preds = %for.body14.i.i, %entry
9995
%i.1424.i.i = phi i32 [ %inc21.i.i, %for.body14.i.i ], [ 0, %entry ]
100-
%next19.i.i = getelementptr inbounds %struct.CvNode1D2, ptr %src, i32 %i.1424.i.i, i32 0
96+
%next19.i.i = getelementptr inbounds %struct.CvNode1D2, ptr undef, i32 %i.1424.i.i, i32 0
10197
%load_p = load ptr, ptr %next19.i.i, align 4
102-
%arrayidx15.i.i1427 = getelementptr inbounds %struct.CvNode1D2, ptr %src, i32 %i.1424.i.i
98+
%arrayidx15.i.i1427 = getelementptr inbounds %struct.CvNode1D2, ptr undef, i32 %i.1424.i.i
10399
%val.i.i = getelementptr inbounds %struct.CvNode1D2, ptr %arrayidx15.i.i1427, i32 0, i32 1
104100
%load_d = load double, ptr %val.i.i, align 4
105-
%dst.ptr = getelementptr inbounds %struct.CvNode1D, ptr %dst, i32 %i.1424.i.i
106-
%dst.ptr.1 = getelementptr inbounds %struct.CvNode1D, ptr %dst, i32 %i.1424.i.i, i32 1
107-
store double %load_d, ptr %dst.ptr, align 4
108-
store ptr %load_p, ptr %dst.ptr.1, align 4
109101
%inc21.i.i = add nuw nsw i32 %i.1424.i.i, 1
110102
%exitcond438.i.i = icmp eq i32 %inc21.i.i, 0
111103
br i1 %exitcond438.i.i, label %for.end22.i.i, label %for.body14.i.i
112104

113105
for.end22.i.i: ; preds = %for.body14.i.i
114106
unreachable
115107
}
108+
109+
declare i32 @__gxx_personality_v0(...)
110+
111+
attributes #0 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="generic" "unsafe-fp-math"="false" "use-soft-float"="false" }
112+

llvm/test/Transforms/LoopVectorize/vplan-unused-interleave-group.ll

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)