File: misched-sort-resource-in-trace.mir

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.6-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,304 kB
  • sloc: cpp: 7,438,677; ansic: 1,393,822; asm: 1,012,926; python: 241,650; f90: 86,635; objc: 75,479; lisp: 42,144; pascal: 17,286; sh: 10,027; ml: 5,082; perl: 4,730; awk: 3,523; makefile: 3,349; javascript: 2,251; xml: 892; fortran: 672
file content (53 lines) | stat: -rw-r--r-- 2,963 bytes parent folder | download | duplicates (2)
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
# RUN: llc -mtriple=aarch64-none-linux-gnu -mcpu=exynos-m3 -verify-machineinstrs \
# RUN: -run-pass=machine-scheduler -debug-only=machine-scheduler -o - %s \
# RUN:  -misched-prera-direction=topdown -sched-print-cycles=true \
# RUN:  -misched-dump-schedule-trace=true --misched-sort-resources-in-trace=true 2>&1 | FileCheck --check-prefix=SORTED %s

# RUN: llc -mtriple=aarch64-none-linux-gnu -mcpu=exynos-m3 -verify-machineinstrs \
# RUN: -run-pass=machine-scheduler -debug-only=machine-scheduler -o - %s \
# RUN:  -misched-prera-direction=topdown -sched-print-cycles=true \
# RUN:  -misched-dump-schedule-trace=true --misched-sort-resources-in-trace=false 2>&1 | FileCheck --check-prefix=UNSORTED %s

# REQUIRES: asserts, aarch64-registered-target
---
name: test
tracksRegLiveness: true
body:             |
  bb.0:
  liveins: $x0, $x1, $x3, $x4, $q2
  $x0, $q2 = LD1i32_POST $q2, 0, $x0, $x0 :: ("aarch64-strided-access" load (s32))
  $x1, $q2 = LD1i32_POST $q2, 0, $x1, $x1 :: ("aarch64-strided-access" load (s32))
...


# SORTED-LABEL: *** Final schedule for %bb.0 ***
# SORTED-NEXT:  * Schedule table (TopDown):
# SORTED-NEXT:   i: issue
# SORTED-NEXT:   x: resource booked
# SORTED-NEXT: Cycle              | 0  | 1  | 2  |
# SORTED-NEXT: SU(0)              | i  |    |    |
# SORTED-NEXT:          M3UnitALU | x  |    |    |
# SORTED-NEXT:         M3UnitNALU | x  |    |    |
# SORTED-NEXT:            M3UnitL | x  | x  |    |
# SORTED-NEXT: SU(1)              |    | i  |    |
# SORTED-NEXT:          M3UnitALU |    | x  |    |
# SORTED-NEXT:         M3UnitNALU |    | x  |    |
# SORTED-NEXT:            M3UnitL |    | x  | x  |
# SORTED-NEXT: SU(0) [TopReadyCycle = 0, BottomReadyCycle = 0]: $x0, $q2 = LD1i32_POST $q2(tied-def 1), 0, $x0(tied-def 0), $x0 :: ("aarch64-strided-access" load (s32))
# SORTED-NEXT: SU(1) [TopReadyCycle = 1, BottomReadyCycle = 6]:   $x1, $q2 = LD1i32_POST $q2(tied-def 1), 0, $x1(tied-def 0), $x1 :: ("aarch64-strided-access" load (s32))

# UNSORTED-LABEL: *** Final schedule for %bb.0 ***
# UNSORTED-NEXT:  * Schedule table (TopDown):
# UNSORTED-NEXT:   i: issue
# UNSORTED-NEXT:   x: resource booked
# UNSORTED-NEXT: Cycle              | 0  | 1  | 2  |
# UNSORTED-NEXT: SU(0)              | i  |    |    |
# UNSORTED-NEXT:          M3UnitALU | x  |    |    |
# UNSORTED-NEXT:            M3UnitL | x  | x  |    |
# UNSORTED-NEXT:         M3UnitNALU | x  |    |    |
# UNSORTED-NEXT: SU(1)              |    | i  |    |
# UNSORTED-NEXT:          M3UnitALU |    | x  |    |
# UNSORTED-NEXT:            M3UnitL |    | x  | x  |
# UNSORTED-NEXT:         M3UnitNALU |    | x  |    |
# UNSORTED-NEXT: SU(0) [TopReadyCycle = 0, BottomReadyCycle = 0]: $x0, $q2 = LD1i32_POST $q2(tied-def 1), 0, $x0(tied-def 0), $x0 :: ("aarch64-strided-access" load (s32))
# UNSORTED-NEXT: SU(1) [TopReadyCycle = 1, BottomReadyCycle = 6]:   $x1, $q2 = LD1i32_POST $q2(tied-def 1), 0, $x1(tied-def 0), $x1 :: ("aarch64-strided-access" load (s32))