File: analysis-same-cluster-for-ops-in-different-sched-clusters.test

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,496,180 kB
  • sloc: cpp: 5,593,972; ansic: 986,872; asm: 585,869; python: 184,223; objc: 72,530; lisp: 31,119; f90: 27,793; javascript: 9,780; pascal: 9,762; sh: 9,482; perl: 7,468; ml: 5,432; awk: 3,523; makefile: 2,538; xml: 953; cs: 573; fortran: 567
file content (54 lines) | stat: -rw-r--r-- 2,538 bytes parent folder | download | duplicates (23)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# RUN: llvm-exegesis -mode=analysis -benchmarks-file=%s -analysis-clusters-output-file=- -analysis-clustering-epsilon=10 -analysis-numpoints=1 | FileCheck -check-prefixes=CHECK-CLUSTERS-ALL,CHECK-CLUSTERS-DBSCAN %s
# RUN: llvm-exegesis -mode=analysis -benchmarks-file=%s -analysis-clusters-output-file=- -analysis-clustering-epsilon=10 -analysis-numpoints=1 -analysis-clustering=dbscan | FileCheck -check-prefixes=CHECK-CLUSTERS-ALL,CHECK-CLUSTERS-DBSCAN %s
# RUN: llvm-exegesis -mode=analysis -benchmarks-file=%s -analysis-clusters-output-file=- -analysis-clustering-epsilon=10 -analysis-numpoints=1 -analysis-clustering=naive | FileCheck -check-prefixes=CHECK-CLUSTERS-ALL,CHECK-CLUSTERS-NAIVE %s

# Normally BSR32rr is in WriteBSR and BSF32rr is in WriteBSF sched classes.
# Here we check that if we have dbscan-clustered these two measurements into the
# same cluster, we don't split it per the sched classes into two.

# CHECK-CLUSTERS-ALL: {{^}}cluster_id,opcode_name,config,sched_class,inverse_throughput{{$}}

# CHECK-CLUSTERS-DBSCAN-NEXT: {{^}}0,
# CHECK-CLUSTERS-DBSCAN-SAME: ,4.03{{$}}
# CHECK-CLUSTERS-DBSCAN-NEXT: {{^}}0,
# CHECK-CLUSTERS-DBSCAN-SAME: ,3.02{{$}}

# CHECK-CLUSTERS-NAIVE-NEXT: {{^}}0,
# CHECK-CLUSTERS-NAIVE-SAME: ,3.02{{$}}
# CHECK-CLUSTERS-NAIVE: {{^}}1,
# CHECK-CLUSTERS-NAIVE-SAME: ,4.03{{$}}

---
mode:            inverse_throughput
key:
  instructions:
    - 'BSR32rr R11D EDI'
  config:          ''
  register_initial_values:
    - 'EDI=0x0'
cpu_name:        bdver2
llvm_triple:     x86_64-unknown-linux-gnu
num_repetitions: 1000000
measurements:
  - { key: inverse_throughput, value: 4.03048, per_snippet_value: 4.03048 }
error:           ''
info:            instruction has no tied variables picking Uses different from defs
assembled_snippet: BF00000000440FBDDF440FBDDF440FBDDF440FBDDF440FBDDF440FBDDF440FBDDF440FBDDF440FBDDF440FBDDF440FBDDF440FBDDF440FBDDF440FBDDF440FBDDF440FBDDFC3
...
---
mode:            inverse_throughput
key:
  instructions:
    - 'BSF32rr EAX R14D'
  config:          ''
  register_initial_values:
    - 'R14D=0x0'
cpu_name:        bdver2
llvm_triple:     x86_64-unknown-linux-gnu
num_repetitions: 1000000
measurements:
  - { key: inverse_throughput, value: 3.02186, per_snippet_value: 3.02186 }
error:           ''
info:            instruction has no tied variables picking Uses different from defs
assembled_snippet: 415641BE00000000410FBCC6410FBCC6410FBCC6410FBCC6410FBCC6410FBCC6410FBCC6410FBCC6410FBCC6410FBCC6410FBCC6410FBCC6410FBCC6410FBCC6410FBCC6410FBCC6415EC3
...