File: si-lower-i1-copies.mir

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (33 lines) | stat: -rw-r--r-- 1,024 bytes parent folder | download | duplicates (19)
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
# RUN: llc -mtriple=amdgcn-amd-amdhsa -verify-machineinstrs -run-pass=si-i1-copies -o - %s | FileCheck -check-prefixes=GCN %s

# GCN-LABEL: name: lcssa_phi
---
name:              lcssa_phi
tracksRegLiveness: true
body:             |
  bb.0:
    %0:sreg_64 = S_MOV_B64 0
    %8:vreg_1 = IMPLICIT_DEF
    %10:sreg_64 = IMPLICIT_DEF
    %11:sreg_64 = SI_IF %10, %bb.3, implicit-def dead $exec, implicit-def dead $scc, implicit $exec
    S_BRANCH %bb.1

  bb.1:
    %1:sreg_64 = PHI %0, %bb.0, %3, %bb.1
    %2:sreg_64 = IMPLICIT_DEF
    %3:sreg_64 = SI_IF_BREAK %2, %1, implicit-def dead $scc
    %4:sreg_64 = IMPLICIT_DEF
    %5:vreg_1 = COPY %4
    SI_LOOP %3, %bb.1, implicit-def dead $exec, implicit-def dead $scc, implicit $exec
    S_BRANCH %bb.2

  bb.2:
    %6:vreg_1 = PHI %5, %bb.1
    SI_END_CF %3, implicit-def dead $exec, implicit-def dead $scc, implicit $exec

  bb.3:
    %7:vreg_1 = PHI %6, %bb.2, %8, %bb.0
    SI_END_CF %11, implicit-def dead $exec, implicit-def dead $scc, implicit $exec
    S_ENDPGM 0

...