|
1 | | -# RUN: llvm-profdata merge --temporal-profile-trace-reservoir-size=2 %s -o %t.profdata |
2 | | -# RUN: llvm-profdata show --temporal-profile-traces %t.profdata | FileCheck %s --check-prefixes=SAMPLE1,SEEN1 |
3 | | -# RUN: llvm-profdata merge --temporal-profile-trace-reservoir-size=2 %s %t.profdata -o %t.profdata |
4 | | -# RUN: llvm-profdata show --temporal-profile-traces %t.profdata | FileCheck %s --check-prefixes=SAMPLE2,SEEN2 |
5 | | -# RUN: llvm-profdata merge --temporal-profile-trace-reservoir-size=2 %s %t.profdata -o %t.profdata |
6 | | -# RUN: llvm-profdata show --temporal-profile-traces %t.profdata | FileCheck %s --check-prefixes=SAMPLE2,SEEN3 |
7 | | -# RUN: llvm-profdata merge --temporal-profile-trace-reservoir-size=2 %s %t.profdata -o %t.profdata |
8 | | -# RUN: llvm-profdata show --temporal-profile-traces %t.profdata | FileCheck %s --check-prefixes=SAMPLE2,SEEN4 |
9 | | - |
10 | | -# SEEN1: Temporal Profile Traces (samples=1 seen=1): |
11 | | -# SEEN2: Temporal Profile Traces (samples=2 seen=2): |
12 | | -# SEEN3: Temporal Profile Traces (samples=2 seen=3): |
13 | | -# SEEN4: Temporal Profile Traces (samples=2 seen=4): |
14 | | -# SAMPLE1: Temporal Profile Trace 0 (weight=1 count=3): |
15 | | -# SAMPLE1: a |
16 | | -# SAMPLE1: b |
17 | | -# SAMPLE1: c |
18 | | -# SAMPLE2: Temporal Profile Trace 1 (weight=1 count=3): |
19 | | -# SAMPLE2: a |
20 | | -# SAMPLE2: b |
21 | | -# SAMPLE2: c |
| 1 | +# RUN: llvm-profdata merge --temporal-profile-trace-reservoir-size=2 %s --text | FileCheck %s --check-prefixes=CHECK,SEEN1,SAMPLE1 |
| 2 | + |
| 3 | +# Merge %s twice so it has two traces |
| 4 | +# RUN: llvm-profdata merge --temporal-profile-trace-reservoir-size=2 %s %s --text | FileCheck %s --check-prefixes=CHECK,SEEN2,SAMPLE2 |
| 5 | +# RUN: llvm-profdata merge --temporal-profile-trace-reservoir-size=2 %s %s -o %t-2.profdata |
| 6 | + |
| 7 | +# RUN: llvm-profdata merge --temporal-profile-trace-reservoir-size=2 %s %s %s --text | FileCheck %s --check-prefixes=CHECK,SEEN3,SAMPLE2 |
| 8 | +# RUN: llvm-profdata merge --temporal-profile-trace-reservoir-size=2 %t-2.profdata %s --text | FileCheck %s --check-prefixes=CHECK,SEEN3,SAMPLE2 |
| 9 | +# RUN: llvm-profdata merge --temporal-profile-trace-reservoir-size=2 %s %t-2.profdata --text | FileCheck %s --check-prefixes=CHECK,SEEN3,SAMPLE2 |
| 10 | + |
| 11 | +# RUN: llvm-profdata merge --temporal-profile-trace-reservoir-size=2 %s %s %s %s --text | FileCheck %s --check-prefixes=CHECK,SEEN4,SAMPLE2 |
| 12 | +# RUN: llvm-profdata merge --temporal-profile-trace-reservoir-size=2 %t-2.profdata %s %s --text | FileCheck %s --check-prefixes=CHECK,SEEN4,SAMPLE2 |
| 13 | +# RUN: llvm-profdata merge --temporal-profile-trace-reservoir-size=2 %t-2.profdata %t-2.profdata --text | FileCheck %s --check-prefixes=CHECK,SEEN4,SAMPLE2 |
| 14 | + |
| 15 | +# CHECK: :temporal_prof_traces |
| 16 | +# CHECK: # Num Temporal Profile Traces: |
| 17 | +# SAMPLE1: 1 |
| 18 | +# SAMPLE2: 2 |
| 19 | +# CHECK: # Temporal Profile Trace Stream Size: |
| 20 | +# SEEN1: 1 |
| 21 | +# SEEN2: 2 |
| 22 | +# SEEN3: 3 |
| 23 | +# SEEN4: 4 |
| 24 | +# CHECK: a,b,c, |
22 | 25 |
|
23 | 26 | # Header |
24 | 27 | :ir |
|
0 commit comments