File: hazard-in-bundle.mir

package info (click to toggle)
llvm-toolchain-17 1%3A17.0.6-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,799,624 kB
  • sloc: cpp: 6,428,607; ansic: 1,383,196; asm: 793,408; python: 223,504; objc: 75,364; f90: 60,502; lisp: 33,869; pascal: 15,282; sh: 9,684; perl: 7,453; ml: 4,937; awk: 3,523; makefile: 2,889; javascript: 2,149; xml: 888; fortran: 619; cs: 573
file content (84 lines) | stat: -rw-r--r-- 2,811 bytes parent folder | download | duplicates (4)
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
# RUN: llc -march=amdgcn -mcpu=gfx902 -mattr=+xnack -verify-machineinstrs -run-pass  post-RA-hazard-rec %s -o - | FileCheck -check-prefixes=GCN,XNACK,GFX9 %s
# RUN: llc -march=amdgcn -mcpu=gfx900 -mattr=-xnack -verify-machineinstrs -run-pass  post-RA-hazard-rec %s -o - | FileCheck -check-prefixes=GCN,NOXNACK,GFX9 %s
# RUN: llc -march=amdgcn -mcpu=gfx1010 -mattr=-wavefrontsize32,+wavefrontsize64,-xnack -verify-machineinstrs -run-pass  post-RA-hazard-rec %s -o - | FileCheck -check-prefixes=GCN,NOXNACK,GFX10 %s

# GCN-LABEL: name: break_smem_clause_max_look_ahead_in_bundle
# GCN:          S_LOAD_DWORDX2_IMM
# XNACK-NEXT:   S_NOP
# NOXNACK-NOT:  S_NOP
# GCN:          S_LOAD_DWORDX2
# XNACK-NEXT:   S_NOP
# NOXNACK-NOT:  S_NOP
# GCN:          }
---
name: break_smem_clause_max_look_ahead_in_bundle
body: |
  bb.0:
    BUNDLE implicit-def $sgpr6_sgpr7 {
      $sgpr0_sgpr1 = S_LOAD_DWORDX2_IMM $sgpr10_sgpr11, 0, 0
      S_STORE_DWORD_IMM $sgpr8, $sgpr10_sgpr11, 0, 0
      S_STORE_DWORD_IMM $sgpr8, $sgpr10_sgpr11, 4, 0
      S_STORE_DWORD_IMM $sgpr8, $sgpr10_sgpr11, 8, 0
      S_STORE_DWORD_IMM $sgpr8, $sgpr10_sgpr11, 12, 0
      S_STORE_DWORD_IMM $sgpr8, $sgpr10_sgpr11, 16, 0
      $sgpr14_sgpr15 = S_LOAD_DWORDX2_IMM $sgpr12_sgpr13, 0, 0
      $sgpr16_sgpr17 = S_LOAD_DWORDX2_IMM $sgpr14_sgpr15, 0, 0
    }
    S_ENDPGM 0
...

# GFX10-LABEL: name: hazard_smem_war_in_bundle
# GFX10:      S_LOAD_DWORD_IMM
# GFX10-NEXT: $sgpr_null = S_MOV_B32 0
# GFX10:      V_CMP_EQ_F32
---
name: hazard_smem_war_in_bundle
body: |
  bb.0:
    liveins: $sgpr0, $sgpr1, $vgpr0, $vgpr1
    BUNDLE implicit-def $sgpr0_sgpr1 {
      $sgpr2 = S_LOAD_DWORD_IMM $sgpr0_sgpr1, 0, 0
      $sgpr0_sgpr1 = V_CMP_EQ_F32_e64 0, $vgpr0, 0, $vgpr1, 1, implicit $mode, implicit $exec
    }
    S_ENDPGM 0
...

# GFX9-LABEL: name: hazard_ignore_dbg_label_in_bundle
# GFX9:      DBG_LABEL 6
# GFX9-NEXT: S_NOP 0
# GFX9:      S_SENDMSG 3, implicit $exec, implicit $m0
---
name: hazard_ignore_dbg_label_in_bundle
body: |
  bb.0:
    BUNDLE {
      $m0 = S_MOV_B32 killed $sgpr12
      DBG_LABEL 0
      DBG_LABEL 1
      DBG_LABEL 2
      DBG_LABEL 3
      DBG_LABEL 4
      DBG_LABEL 5
      DBG_LABEL 6
      S_SENDMSG 3, implicit $exec, implicit $m0
    }
    S_ENDPGM 0
...

# GCN-LABEL: name: vmem_vcc_hazard_in_bundle
# GCN:      S_LOAD_DWORDX2_IMM
# GFX9-NEXT: S_NOP 3
# GCN:      BUFFER_LOAD_DWORD_OFFEN
---
name: vmem_vcc_hazard_in_bundle
body: |
  bb.0:
    BUNDLE {
      $sgpr0_sgpr1_sgpr2_sgpr3 = IMPLICIT_DEF
      $vgpr0 = IMPLICIT_DEF
      $vgpr1 = V_ADDC_U32_e32 $vgpr0, $vgpr0, implicit-def $vcc, implicit $vcc, implicit $exec
      $sgpr0_sgpr1 = S_LOAD_DWORDX2_IMM $sgpr10_sgpr11, 0, 0
      $vgpr1 = BUFFER_LOAD_DWORD_OFFEN $vgpr0, $sgpr0_sgpr1_sgpr2_sgpr3, $vcc_lo, 0, 0, 0, implicit $exec
    }
    S_ENDPGM 0
...