-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[AMDGPU] Add tests for SIPreAllocateWWMRegs #109963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5 | ||
# RUN: llc -mtriple=amdgcn -mcpu=tahiti -verify-machineinstrs -run-pass=si-pre-allocate-wwm-regs -o - %s | FileCheck %s | ||
# RUN: llc -mtriple=amdgcn -mcpu=tahiti -verify-machineinstrs -amdgpu-prealloc-sgpr-spill-vgprs -run-pass=si-pre-allocate-wwm-regs -o - %s | FileCheck %s --check-prefix=CHECK2 | ||
|
||
# COM: auto-generated updates might remove checks for MachineFunctionInfo reserved registers. | ||
--- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add fixme to check the MachineFunctionInfo reserved register information There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it for WWM reserved registers? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But we have that already(?)
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then you need to write manual checks for it. Update_mir_test_checks doesn't currently support the function level properties There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added a comment for the manual check. |
||
|
||
name: pre_allocate_wwm_regs_strict | ||
tracksRegLiveness: true | ||
body: | | ||
optimisan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
bb.0: | ||
liveins: $sgpr1 | ||
; CHECK-LABEL: name: pre_allocate_wwm_regs_strict | ||
; CHECK: wwmReservedRegs: | ||
; CHECK-NEXT: - '$vgpr0' | ||
; CHECK: liveins: $sgpr1 | ||
; CHECK-NEXT: {{ $}} | ||
; CHECK-NEXT: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF | ||
; CHECK-NEXT: renamable $sgpr4_sgpr5 = ENTER_STRICT_WWM -1, implicit-def $exec, implicit-def $scc, implicit $exec | ||
; CHECK-NEXT: $vgpr0 = V_MOV_B32_e32 0, implicit $exec | ||
; CHECK-NEXT: dead $vgpr0 = V_MOV_B32_dpp $vgpr0, [[DEF]], 323, 12, 15, 0, implicit $exec | ||
; CHECK-NEXT: $exec = EXIT_STRICT_WWM killed renamable $sgpr4_sgpr5 | ||
; CHECK-NEXT: dead [[COPY:%[0-9]+]]:vgpr_32 = COPY [[DEF]] | ||
%0:vgpr_32 = IMPLICIT_DEF | ||
renamable $sgpr4_sgpr5 = ENTER_STRICT_WWM -1, implicit-def $exec, implicit-def $scc, implicit $exec | ||
%1:vgpr_32 = V_MOV_B32_e32 0, implicit $exec | ||
%2:vgpr_32 = V_MOV_B32_dpp %1, %0, 323, 12, 15, 0, implicit $exec | ||
$exec = EXIT_STRICT_WWM killed renamable $sgpr4_sgpr5 | ||
%3:vgpr_32 = COPY %0 | ||
... | ||
--- | ||
|
||
name: pre_allocate_wwm_spill_to_vgpr | ||
tracksRegLiveness: true | ||
body: | | ||
bb.0: | ||
liveins: $sgpr1 | ||
; CHECK2-LABEL: name: pre_allocate_wwm_spill_to_vgpr | ||
; CHECK2: wwmReservedRegs: | ||
; CHECK2-NEXT: - '$vgpr0' | ||
; CHECK2: liveins: $sgpr1 | ||
; CHECK2-NEXT: {{ $}} | ||
; CHECK2-NEXT: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF | ||
; CHECK2-NEXT: dead $vgpr0 = SI_SPILL_S32_TO_VGPR $sgpr1, 0, [[DEF]] | ||
; CHECK2-NEXT: dead [[COPY:%[0-9]+]]:vgpr_32 = COPY [[DEF]] | ||
%0:vgpr_32 = IMPLICIT_DEF | ||
%1:vgpr_32 = SI_SPILL_S32_TO_VGPR $sgpr1, 0, %0 | ||
%2:vgpr_32 = COPY %0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing ... at end of function |
||
... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best to remote this and remove the comment then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is remote?