Skip to content

Commit 70906f0

Browse files
committed
[LV][X86] Regenerate interleaved load/store costs. NFC.
update_analyze_test_checks has improved the checks since these were last updated. Reduce noise diffs in future patches.
1 parent cb1b51f commit 70906f0

File tree

59 files changed

+1393
-1131
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1393
-1131
lines changed

llvm/test/Transforms/LoopVectorize/X86/CostModel/interleaved-load-f32-stride-2.ll

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,39 @@ target triple = "x86_64-unknown-linux-gnu"
1414
define void @test() {
1515
; SSE2-LABEL: 'test'
1616
; SSE2: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
17-
; SSE2: Cost of 3 for VF 2: INTERLEAVE-GROUP with factor 2 at %v0
18-
; SSE2: Cost of 4 for VF 4: INTERLEAVE-GROUP with factor 2 at %v0
19-
; SSE2: Cost of 28 for VF 8: INTERLEAVE-GROUP with factor 2 at %v0
20-
; SSE2: Cost of 56 for VF 16: INTERLEAVE-GROUP with factor 2 at %v0
17+
; SSE2: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
18+
; SSE2: LV: Found an estimated cost of 3 for VF 2 For instruction: %v0 = load float, ptr %in0, align 4
19+
; SSE2: LV: Found an estimated cost of 4 for VF 4 For instruction: %v0 = load float, ptr %in0, align 4
20+
; SSE2: LV: Found an estimated cost of 28 for VF 8 For instruction: %v0 = load float, ptr %in0, align 4
21+
; SSE2: LV: Found an estimated cost of 56 for VF 16 For instruction: %v0 = load float, ptr %in0, align 4
2122
;
2223
; AVX1-LABEL: 'test'
2324
; AVX1: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
24-
; AVX1: Cost of 3 for VF 2: INTERLEAVE-GROUP with factor 2 at %v0
25-
; AVX1: Cost of 3 for VF 4: INTERLEAVE-GROUP with factor 2 at %v0
26-
; AVX1: Cost of 30 for VF 8: INTERLEAVE-GROUP with factor 2 at %v0
27-
; AVX1: Cost of 60 for VF 16: INTERLEAVE-GROUP with factor 2 at %v0
28-
; AVX1: Cost of 120 for VF 32: INTERLEAVE-GROUP with factor 2 at %v0
25+
; AVX1: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
26+
; AVX1: LV: Found an estimated cost of 3 for VF 2 For instruction: %v0 = load float, ptr %in0, align 4
27+
; AVX1: LV: Found an estimated cost of 3 for VF 4 For instruction: %v0 = load float, ptr %in0, align 4
28+
; AVX1: LV: Found an estimated cost of 30 for VF 8 For instruction: %v0 = load float, ptr %in0, align 4
29+
; AVX1: LV: Found an estimated cost of 60 for VF 16 For instruction: %v0 = load float, ptr %in0, align 4
30+
; AVX1: LV: Found an estimated cost of 120 for VF 32 For instruction: %v0 = load float, ptr %in0, align 4
2931
;
3032
; AVX2-LABEL: 'test'
3133
; AVX2: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
32-
; AVX2: Cost of 3 for VF 2: INTERLEAVE-GROUP with factor 2 at %v0
33-
; AVX2: Cost of 3 for VF 4: INTERLEAVE-GROUP with factor 2 at %v0
34-
; AVX2: Cost of 6 for VF 8: INTERLEAVE-GROUP with factor 2 at %v0
35-
; AVX2: Cost of 12 for VF 16: INTERLEAVE-GROUP with factor 2 at %v0
36-
; AVX2: Cost of 24 for VF 32: INTERLEAVE-GROUP with factor 2 at %v0
34+
; AVX2: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
35+
; AVX2: LV: Found an estimated cost of 3 for VF 2 For instruction: %v0 = load float, ptr %in0, align 4
36+
; AVX2: LV: Found an estimated cost of 3 for VF 4 For instruction: %v0 = load float, ptr %in0, align 4
37+
; AVX2: LV: Found an estimated cost of 6 for VF 8 For instruction: %v0 = load float, ptr %in0, align 4
38+
; AVX2: LV: Found an estimated cost of 12 for VF 16 For instruction: %v0 = load float, ptr %in0, align 4
39+
; AVX2: LV: Found an estimated cost of 24 for VF 32 For instruction: %v0 = load float, ptr %in0, align 4
3740
;
3841
; AVX512-LABEL: 'test'
3942
; AVX512: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
40-
; AVX512: Cost of 3 for VF 2: INTERLEAVE-GROUP with factor 2 at %v0
41-
; AVX512: Cost of 3 for VF 4: INTERLEAVE-GROUP with factor 2 at %v0
42-
; AVX512: Cost of 3 for VF 8: INTERLEAVE-GROUP with factor 2 at %v0
43-
; AVX512: Cost of 5 for VF 16: INTERLEAVE-GROUP with factor 2 at %v0
44-
; AVX512: Cost of 22 for VF 32: INTERLEAVE-GROUP with factor 2 at %v0
45-
; AVX512: Cost of 92 for VF 64: INTERLEAVE-GROUP with factor 2 at %v0
43+
; AVX512: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
44+
; AVX512: LV: Found an estimated cost of 3 for VF 2 For instruction: %v0 = load float, ptr %in0, align 4
45+
; AVX512: LV: Found an estimated cost of 3 for VF 4 For instruction: %v0 = load float, ptr %in0, align 4
46+
; AVX512: LV: Found an estimated cost of 3 for VF 8 For instruction: %v0 = load float, ptr %in0, align 4
47+
; AVX512: LV: Found an estimated cost of 5 for VF 16 For instruction: %v0 = load float, ptr %in0, align 4
48+
; AVX512: LV: Found an estimated cost of 22 for VF 32 For instruction: %v0 = load float, ptr %in0, align 4
49+
; AVX512: LV: Found an estimated cost of 92 for VF 64 For instruction: %v0 = load float, ptr %in0, align 4
4650
;
4751
entry:
4852
br label %for.body

llvm/test/Transforms/LoopVectorize/X86/CostModel/interleaved-load-f32-stride-3.ll

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,39 @@ target triple = "x86_64-unknown-linux-gnu"
1414
define void @test() {
1515
; SSE2-LABEL: 'test'
1616
; SSE2: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
17-
; SSE2: Cost of 9 for VF 2: INTERLEAVE-GROUP with factor 3 at %v0
18-
; SSE2: Cost of 21 for VF 4: INTERLEAVE-GROUP with factor 3 at %v0
19-
; SSE2: Cost of 42 for VF 8: INTERLEAVE-GROUP with factor 3 at %v0
20-
; SSE2: Cost of 84 for VF 16: INTERLEAVE-GROUP with factor 3 at %v0
17+
; SSE2: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
18+
; SSE2: LV: Found an estimated cost of 9 for VF 2 For instruction: %v0 = load float, ptr %in0, align 4
19+
; SSE2: LV: Found an estimated cost of 21 for VF 4 For instruction: %v0 = load float, ptr %in0, align 4
20+
; SSE2: LV: Found an estimated cost of 42 for VF 8 For instruction: %v0 = load float, ptr %in0, align 4
21+
; SSE2: LV: Found an estimated cost of 84 for VF 16 For instruction: %v0 = load float, ptr %in0, align 4
2122
;
2223
; AVX1-LABEL: 'test'
2324
; AVX1: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
24-
; AVX1: Cost of 11 for VF 2: INTERLEAVE-GROUP with factor 3 at %v0
25-
; AVX1: Cost of 21 for VF 4: INTERLEAVE-GROUP with factor 3 at %v0
26-
; AVX1: Cost of 45 for VF 8: INTERLEAVE-GROUP with factor 3 at %v0
27-
; AVX1: Cost of 90 for VF 16: INTERLEAVE-GROUP with factor 3 at %v0
28-
; AVX1: Cost of 180 for VF 32: INTERLEAVE-GROUP with factor 3 at %v0
25+
; AVX1: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
26+
; AVX1: LV: Found an estimated cost of 11 for VF 2 For instruction: %v0 = load float, ptr %in0, align 4
27+
; AVX1: LV: Found an estimated cost of 21 for VF 4 For instruction: %v0 = load float, ptr %in0, align 4
28+
; AVX1: LV: Found an estimated cost of 45 for VF 8 For instruction: %v0 = load float, ptr %in0, align 4
29+
; AVX1: LV: Found an estimated cost of 90 for VF 16 For instruction: %v0 = load float, ptr %in0, align 4
30+
; AVX1: LV: Found an estimated cost of 180 for VF 32 For instruction: %v0 = load float, ptr %in0, align 4
2931
;
3032
; AVX2-LABEL: 'test'
3133
; AVX2: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
32-
; AVX2: Cost of 6 for VF 2: INTERLEAVE-GROUP with factor 3 at %v0
33-
; AVX2: Cost of 5 for VF 4: INTERLEAVE-GROUP with factor 3 at %v0
34-
; AVX2: Cost of 10 for VF 8: INTERLEAVE-GROUP with factor 3 at %v0
35-
; AVX2: Cost of 20 for VF 16: INTERLEAVE-GROUP with factor 3 at %v0
36-
; AVX2: Cost of 44 for VF 32: INTERLEAVE-GROUP with factor 3 at %v0
34+
; AVX2: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
35+
; AVX2: LV: Found an estimated cost of 6 for VF 2 For instruction: %v0 = load float, ptr %in0, align 4
36+
; AVX2: LV: Found an estimated cost of 5 for VF 4 For instruction: %v0 = load float, ptr %in0, align 4
37+
; AVX2: LV: Found an estimated cost of 10 for VF 8 For instruction: %v0 = load float, ptr %in0, align 4
38+
; AVX2: LV: Found an estimated cost of 20 for VF 16 For instruction: %v0 = load float, ptr %in0, align 4
39+
; AVX2: LV: Found an estimated cost of 44 for VF 32 For instruction: %v0 = load float, ptr %in0, align 4
3740
;
3841
; AVX512-LABEL: 'test'
3942
; AVX512: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
40-
; AVX512: Cost of 4 for VF 2: INTERLEAVE-GROUP with factor 3 at %v0
41-
; AVX512: Cost of 4 for VF 4: INTERLEAVE-GROUP with factor 3 at %v0
42-
; AVX512: Cost of 6 for VF 8: INTERLEAVE-GROUP with factor 3 at %v0
43-
; AVX512: Cost of 12 for VF 16: INTERLEAVE-GROUP with factor 3 at %v0
44-
; AVX512: Cost of 51 for VF 32: INTERLEAVE-GROUP with factor 3 at %v0
45-
; AVX512: Cost of 210 for VF 64: INTERLEAVE-GROUP with factor 3 at %v0
43+
; AVX512: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
44+
; AVX512: LV: Found an estimated cost of 4 for VF 2 For instruction: %v0 = load float, ptr %in0, align 4
45+
; AVX512: LV: Found an estimated cost of 4 for VF 4 For instruction: %v0 = load float, ptr %in0, align 4
46+
; AVX512: LV: Found an estimated cost of 6 for VF 8 For instruction: %v0 = load float, ptr %in0, align 4
47+
; AVX512: LV: Found an estimated cost of 12 for VF 16 For instruction: %v0 = load float, ptr %in0, align 4
48+
; AVX512: LV: Found an estimated cost of 51 for VF 32 For instruction: %v0 = load float, ptr %in0, align 4
49+
; AVX512: LV: Found an estimated cost of 210 for VF 64 For instruction: %v0 = load float, ptr %in0, align 4
4650
;
4751
entry:
4852
br label %for.body

llvm/test/Transforms/LoopVectorize/X86/CostModel/interleaved-load-f32-stride-4.ll

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,39 @@ target triple = "x86_64-unknown-linux-gnu"
1414
define void @test() {
1515
; SSE2-LABEL: 'test'
1616
; SSE2: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
17-
; SSE2: Cost of 12 for VF 2: INTERLEAVE-GROUP with factor 4 at %v0
18-
; SSE2: Cost of 28 for VF 4: INTERLEAVE-GROUP with factor 4 at %v0
19-
; SSE2: Cost of 56 for VF 8: INTERLEAVE-GROUP with factor 4 at %v0
20-
; SSE2: Cost of 112 for VF 16: INTERLEAVE-GROUP with factor 4 at %v0
17+
; SSE2: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
18+
; SSE2: LV: Found an estimated cost of 12 for VF 2 For instruction: %v0 = load float, ptr %in0, align 4
19+
; SSE2: LV: Found an estimated cost of 28 for VF 4 For instruction: %v0 = load float, ptr %in0, align 4
20+
; SSE2: LV: Found an estimated cost of 56 for VF 8 For instruction: %v0 = load float, ptr %in0, align 4
21+
; SSE2: LV: Found an estimated cost of 112 for VF 16 For instruction: %v0 = load float, ptr %in0, align 4
2122
;
2223
; AVX1-LABEL: 'test'
2324
; AVX1: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
24-
; AVX1: Cost of 12 for VF 2: INTERLEAVE-GROUP with factor 4 at %v0
25-
; AVX1: Cost of 28 for VF 4: INTERLEAVE-GROUP with factor 4 at %v0
26-
; AVX1: Cost of 60 for VF 8: INTERLEAVE-GROUP with factor 4 at %v0
27-
; AVX1: Cost of 120 for VF 16: INTERLEAVE-GROUP with factor 4 at %v0
28-
; AVX1: Cost of 240 for VF 32: INTERLEAVE-GROUP with factor 4 at %v0
25+
; AVX1: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
26+
; AVX1: LV: Found an estimated cost of 12 for VF 2 For instruction: %v0 = load float, ptr %in0, align 4
27+
; AVX1: LV: Found an estimated cost of 28 for VF 4 For instruction: %v0 = load float, ptr %in0, align 4
28+
; AVX1: LV: Found an estimated cost of 60 for VF 8 For instruction: %v0 = load float, ptr %in0, align 4
29+
; AVX1: LV: Found an estimated cost of 120 for VF 16 For instruction: %v0 = load float, ptr %in0, align 4
30+
; AVX1: LV: Found an estimated cost of 240 for VF 32 For instruction: %v0 = load float, ptr %in0, align 4
2931
;
3032
; AVX2-LABEL: 'test'
3133
; AVX2: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
32-
; AVX2: Cost of 5 for VF 2: INTERLEAVE-GROUP with factor 4 at %v0
33-
; AVX2: Cost of 10 for VF 4: INTERLEAVE-GROUP with factor 4 at %v0
34-
; AVX2: Cost of 20 for VF 8: INTERLEAVE-GROUP with factor 4 at %v0
35-
; AVX2: Cost of 40 for VF 16: INTERLEAVE-GROUP with factor 4 at %v0
36-
; AVX2: Cost of 84 for VF 32: INTERLEAVE-GROUP with factor 4 at %v0
34+
; AVX2: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
35+
; AVX2: LV: Found an estimated cost of 5 for VF 2 For instruction: %v0 = load float, ptr %in0, align 4
36+
; AVX2: LV: Found an estimated cost of 10 for VF 4 For instruction: %v0 = load float, ptr %in0, align 4
37+
; AVX2: LV: Found an estimated cost of 20 for VF 8 For instruction: %v0 = load float, ptr %in0, align 4
38+
; AVX2: LV: Found an estimated cost of 40 for VF 16 For instruction: %v0 = load float, ptr %in0, align 4
39+
; AVX2: LV: Found an estimated cost of 84 for VF 32 For instruction: %v0 = load float, ptr %in0, align 4
3740
;
3841
; AVX512-LABEL: 'test'
3942
; AVX512: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
40-
; AVX512: Cost of 5 for VF 2: INTERLEAVE-GROUP with factor 4 at %v0
41-
; AVX512: Cost of 5 for VF 4: INTERLEAVE-GROUP with factor 4 at %v0
42-
; AVX512: Cost of 8 for VF 8: INTERLEAVE-GROUP with factor 4 at %v0
43-
; AVX512: Cost of 22 for VF 16: INTERLEAVE-GROUP with factor 4 at %v0
44-
; AVX512: Cost of 92 for VF 32: INTERLEAVE-GROUP with factor 4 at %v0
43+
; AVX512: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
44+
; AVX512: LV: Found an estimated cost of 5 for VF 2 For instruction: %v0 = load float, ptr %in0, align 4
45+
; AVX512: LV: Found an estimated cost of 5 for VF 4 For instruction: %v0 = load float, ptr %in0, align 4
46+
; AVX512: LV: Found an estimated cost of 8 for VF 8 For instruction: %v0 = load float, ptr %in0, align 4
47+
; AVX512: LV: Found an estimated cost of 22 for VF 16 For instruction: %v0 = load float, ptr %in0, align 4
48+
; AVX512: LV: Found an estimated cost of 92 for VF 32 For instruction: %v0 = load float, ptr %in0, align 4
49+
; AVX512: LV: Found an estimated cost of 80 for VF 64 For instruction: %v0 = load float, ptr %in0, align 4
4550
;
4651
entry:
4752
br label %for.body

llvm/test/Transforms/LoopVectorize/X86/CostModel/interleaved-load-f32-stride-6.ll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,36 @@ target triple = "x86_64-unknown-linux-gnu"
1414
define void @test() {
1515
; SSE2-LABEL: 'test'
1616
; SSE2: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
17+
; SSE2: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
1718
; SSE2: LV: Found an estimated cost of 18 for VF 2 For instruction: %v0 = load float, ptr %in0, align 4
1819
; SSE2: LV: Found an estimated cost of 42 for VF 4 For instruction: %v0 = load float, ptr %in0, align 4
1920
; SSE2: LV: Found an estimated cost of 84 for VF 8 For instruction: %v0 = load float, ptr %in0, align 4
2021
;
2122
; AVX1-LABEL: 'test'
2223
; AVX1: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
24+
; AVX1: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
2325
; AVX1: LV: Found an estimated cost of 18 for VF 2 For instruction: %v0 = load float, ptr %in0, align 4
2426
; AVX1: LV: Found an estimated cost of 42 for VF 4 For instruction: %v0 = load float, ptr %in0, align 4
2527
; AVX1: LV: Found an estimated cost of 90 for VF 8 For instruction: %v0 = load float, ptr %in0, align 4
2628
; AVX1: LV: Found an estimated cost of 180 for VF 16 For instruction: %v0 = load float, ptr %in0, align 4
2729
;
2830
; AVX2-LABEL: 'test'
2931
; AVX2: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
32+
; AVX2: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
3033
; AVX2: LV: Found an estimated cost of 8 for VF 2 For instruction: %v0 = load float, ptr %in0, align 4
3134
; AVX2: LV: Found an estimated cost of 18 for VF 4 For instruction: %v0 = load float, ptr %in0, align 4
3235
; AVX2: LV: Found an estimated cost of 37 for VF 8 For instruction: %v0 = load float, ptr %in0, align 4
3336
; AVX2: LV: Found an estimated cost of 76 for VF 16 For instruction: %v0 = load float, ptr %in0, align 4
3437
;
3538
; AVX512-LABEL: 'test'
3639
; AVX512: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
40+
; AVX512: LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
3741
; AVX512: LV: Found an estimated cost of 7 for VF 2 For instruction: %v0 = load float, ptr %in0, align 4
3842
; AVX512: LV: Found an estimated cost of 11 for VF 4 For instruction: %v0 = load float, ptr %in0, align 4
3943
; AVX512: LV: Found an estimated cost of 21 for VF 8 For instruction: %v0 = load float, ptr %in0, align 4
4044
; AVX512: LV: Found an estimated cost of 51 for VF 16 For instruction: %v0 = load float, ptr %in0, align 4
4145
; AVX512: LV: Found an estimated cost of 210 for VF 32 For instruction: %v0 = load float, ptr %in0, align 4
46+
; AVX512: LV: Found an estimated cost of 80 for VF 64 For instruction: %v0 = load float, ptr %in0, align 4
4247
;
4348
entry:
4449
br label %for.body

0 commit comments

Comments
 (0)