reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    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
# RUN: llc -march=amdgcn -run-pass simple-register-coalescing -o - %s | FileCheck %s
# Check that %11 and %20 have been coalesced.
# CHECK: IMAGE_SAMPLE_C_D_O_V1_V16 %[[REG:[0-9]+]]
# CHECK: IMAGE_SAMPLE_C_D_O_V1_V16 %[[REG]]

---
name:            main
alignment:       1
tracksRegLiveness: true
registers:
  - { id: 0, class: sreg_64 }
  - { id: 1, class: vgpr_32 }
  - { id: 2, class: vgpr_32 }
  - { id: 3, class: sreg_256 }
  - { id: 4, class: sgpr_128 }
  - { id: 5, class: sreg_256 }
  - { id: 6, class: sgpr_128 }
  - { id: 7, class: sreg_512 }
  - { id: 9, class: vreg_512 }
  - { id: 11, class: vreg_512 }
  - { id: 18, class: vgpr_32 }
  - { id: 20, class: vreg_512 }
  - { id: 27, class: vgpr_32 }
liveins:
  - { reg: '$sgpr2_sgpr3', virtual-reg: '%0' }
  - { reg: '$vgpr2', virtual-reg: '%1' }
  - { reg: '$vgpr3', virtual-reg: '%2' }
frameInfo:
  isFrameAddressTaken: false
  isReturnAddressTaken: false
  hasStackMap:     false
  hasPatchPoint:   false
  stackSize:       0
  offsetAdjustment: 0
  maxAlignment:    0
  adjustsStack:    false
  hasCalls:        false
  maxCallFrameSize: 0
  hasOpaqueSPAdjustment: false
  hasVAStart:      false
  hasMustTailInVarArgFunc: false
body:             |
  bb.0:
    liveins: $sgpr2_sgpr3, $vgpr2, $vgpr3

    %0 = COPY $sgpr2_sgpr3
    %1 = COPY $vgpr2
    %2 = COPY $vgpr3
    %3 = S_LOAD_DWORDX8_IMM %0, 0, 0, 0
    %4 = S_LOAD_DWORDX4_IMM %0, 12, 0, 0
    %5 = S_LOAD_DWORDX8_IMM %0, 16, 0, 0
    %6 = S_LOAD_DWORDX4_IMM %0, 28, 0, 0
    undef %7.sub0 = S_MOV_B32 212739
    %20 = COPY %7
    %11 = COPY %20
    %11.sub1 = COPY %1
    %11.sub2 = COPY %1
    %11.sub3 = COPY %1
    %11.sub4 = COPY %1
    %11.sub5 = COPY %1
    %11.sub6 = COPY %1
    %11.sub7 = COPY %1
    %11.sub8 = COPY %1
    dead %18 = IMAGE_SAMPLE_C_D_O_V1_V16 %11, %3, %4, 1, 0, 0, 0, 0, 0, 0, -1, 0, implicit $exec
    %20.sub1 = COPY %2
    %20.sub2 = COPY %2
    %20.sub3 = COPY %2
    %20.sub4 = COPY %2
    %20.sub5 = COPY %2
    %20.sub6 = COPY %2
    %20.sub7 = COPY %2
    %20.sub8 = COPY %2
    dead %27 = IMAGE_SAMPLE_C_D_O_V1_V16 %20, %5, %6, 1, 0, 0, 0, 0, 0, 0, -1, 0, implicit $exec

...