Skip to content

Commit f8dced0

Browse files
Pravin JagtapPravin Jagtap
authored andcommitted
Added observations for tests.
1 parent 7d02a1b commit f8dced0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

llvm/test/CodeGen/AMDGPU/av-spill-expansion-with-machine-cp.mir

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
22
# RUN: llc -mtriple=amdgcn -mcpu=gfx908 %s -o - -run-pass prologepilog,machine-cp -verify-machineinstrs | FileCheck -check-prefix=GFX908 %s
33

4+
# When VGPRs are available for spilling, prologepilog marks the tuple implicit-def as well as implicit in the first spill instruction.
5+
# As a consequence, machine-cp would NOT delete agpr2 copy here.
6+
47
---
58
name: agpr-spill-to-vgpr-machine-cp
69
tracksRegLiveness: true
@@ -30,6 +33,9 @@ body: |
3033
S_ENDPGM 0
3134
...
3235

36+
# When VGPRs are NOT available for spilling (stack is used), prologepilog marks the tuple implicit-def only and NOT implicit.
37+
# As a consequence, machine-cp would delete agpr2 copy here.
38+
3339
---
3440
name: agpr-spill-to-vgpr-to-stack-machine-cp
3541
tracksRegLiveness: true

llvm/test/CodeGen/AMDGPU/av-spill-to-vgpr-and-stack.mir

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
22
# RUN: llc -mtriple=amdgcn -mcpu=gfx908 %s -o - -run-pass prologepilog -verify-machineinstrs | FileCheck -check-prefix=GFX908 %s
33

4+
# During spill expansion, when VGPRs are available for spilling (stack is unused), tuple is being marked as
5+
# implicit-def as well as implicit in the first spill instrunction.
6+
47
---
58
name: agpr-spill-to-vgpr
69
tracksRegLiveness: true
@@ -30,6 +33,9 @@ body: |
3033
S_ENDPGM 0
3134
...
3235

36+
# During spill expansion, when VGPRs are NOT available for spilling (stack is used), tuple is being marked as
37+
# implicit-def ONLY and NOT implicit in the first spill instrunction.
38+
3339
---
3440
name: agpr-spill-to-vgpr-to-stack
3541
tracksRegLiveness: true

0 commit comments

Comments
 (0)