File: swp-ws-live-intervals-issue123165.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 (86 lines) | stat: -rw-r--r-- 3,151 bytes parent folder | download | duplicates (6)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
# RUN: llc --mtriple=hexagon %s -run-pass=pipeliner -o -| FileCheck %s

...
---
name:            test_swp_ws_live_intervals
tracksRegLiveness: true
body:             |
  ; CHECK-LABEL: name: test_swp_ws_live_intervals
  ; CHECK: bb.0:
  ; CHECK-NEXT:   successors: %bb.1(0x80000000)
  ; CHECK-NEXT:   liveins: $r0
  ; CHECK-NEXT: {{  $}}
  ; CHECK-NEXT:   [[COPY:%[0-9]+]]:intregs = COPY $r0
  ; CHECK-NEXT:   J2_loop0i %bb.1, 1, implicit-def $lc0, implicit-def $sa0, implicit-def $usr
  ; CHECK-NEXT: {{  $}}
  ; CHECK-NEXT: bb.1:
  ; CHECK-NEXT:   successors: %bb.2(0x04000000), %bb.1(0x7c000000)
  ; CHECK-NEXT: {{  $}}
  ; CHECK-NEXT:   [[L2_loadri_io:%[0-9]+]]:intregs = L2_loadri_io [[COPY]], 0
  ; CHECK-NEXT:   [[L2_loadrub_io:%[0-9]+]]:intregs = L2_loadrub_io [[L2_loadri_io]], 0
  ; CHECK-NEXT:   [[PS_loadriabs:%[0-9]+]]:intregs = PS_loadriabs 0
  ; CHECK-NEXT:   S2_storerb_io [[PS_loadriabs]], 0, [[L2_loadrub_io]]
  ; CHECK-NEXT:   ENDLOOP0 %bb.1, implicit-def $pc, implicit-def $lc0, implicit $sa0, implicit $lc0
  ; CHECK-NEXT: {{  $}}
  ; CHECK-NEXT: bb.2:
  ; CHECK-NEXT:   successors: %bb.5(0x80000000)
  ; CHECK-NEXT: {{  $}}
  ; CHECK-NEXT:   [[A2_tfrsi:%[0-9]+]]:intregs = A2_tfrsi 0
  ; CHECK-NEXT:   [[A2_tfrsi1:%[0-9]+]]:intregs = A2_tfrsi -1
  ; CHECK-NEXT:   J2_jump %bb.5, implicit-def $pc
  ; CHECK-NEXT: {{  $}}
  ; CHECK-NEXT: bb.3:
  ; CHECK-NEXT:   S2_storeri_io [[COPY]], 0, %18
  ; CHECK-NEXT:   PS_jmpret $r31, implicit-def dead $pc
  ; CHECK-NEXT: {{  $}}
  ; CHECK-NEXT: bb.5:
  ; CHECK-NEXT:   successors: %bb.7(0x80000000)
  ; CHECK-NEXT: {{  $}}
  ; CHECK-NEXT:   [[A2_addi:%[0-9]+]]:intregs = A2_addi [[A2_tfrsi1]], 1
  ; CHECK-NEXT:   J2_jump %bb.7, implicit-def $pc
  ; CHECK-NEXT: {{  $}}
  ; CHECK-NEXT: bb.7:
  ; CHECK-NEXT:   successors: %bb.3(0x80000000)
  ; CHECK-NEXT: {{  $}}
  ; CHECK-NEXT:   [[PHI:%[0-9]+]]:intregs = PHI [[A2_tfrsi]], %bb.5
  ; CHECK-NEXT:   J2_jump %bb.3, implicit-def $pc
  bb.0:
    successors: %bb.1(0x80000000)
    liveins: $r0

    %0:intregs = COPY $r0
    J2_loop0i %bb.1, 1, implicit-def $lc0, implicit-def $sa0, implicit-def $usr

  bb.1:
    successors: %bb.2(0x04000000), %bb.1(0x7c000000)

    %1:intregs = L2_loadri_io %0, 0
    %2:intregs = L2_loadrub_io killed %1, 0
    %3:intregs = PS_loadriabs 0
    S2_storerb_io killed %3, 0, killed %2
    ENDLOOP0 %bb.1, implicit-def $pc, implicit-def $lc0, implicit $sa0, implicit $lc0

  bb.2:
    successors: %bb.4(0x80000000)

    %4:intregs = A2_tfrsi 0
    %5:intregs = A2_tfrsi -1
    J2_loop0i %bb.4, 1, implicit-def $lc0, implicit-def $sa0, implicit-def $usr
    J2_jump %bb.4, implicit-def $pc

  bb.3:
    S2_storeri_io %0, 0, %6
    PS_jmpret $r31, implicit-def dead $pc

  bb.4:
    successors: %bb.3(0x04000000), %bb.4(0x7c000000)

    %7:intregs = PHI %5, %bb.2, %8, %bb.4
    %6:intregs = PHI %4, %bb.2, %9, %bb.4
    %8:intregs = A2_addi %7, 1
    %9:intregs = S2_setbit_i %8, 0
    ENDLOOP0 %bb.4, implicit-def $pc, implicit-def $lc0, implicit $sa0, implicit $lc0
    J2_jump %bb.3, implicit-def $pc

...