-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[AMDGPU] Skip terminators when forcing emit zero flag #112116
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,33 @@ | ||
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5 | ||
# RUN: llc -mtriple=amdgcn-amd-amdhsa -run-pass si-insert-waitcnts -amdgpu-waitcnt-forcezero=1 %s -o - | FileCheck %s | ||
shiltian marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
--- | ||
name: waitcnt-debug-non-first-terminators | ||
liveins: | ||
machineFunctionInfo: | ||
isEntryFunction: true | ||
body: | | ||
; CHECK-LABEL: name: waitcnt-debug-non-first-terminators | ||
; CHECK: bb.0: | ||
; CHECK-NEXT: successors: %bb.1(0x40000000), %bb.2(0x40000000) | ||
; CHECK-NEXT: {{ $}} | ||
; CHECK-NEXT: S_CBRANCH_SCC1 %bb.1, implicit $scc | ||
; CHECK-NEXT: S_BRANCH %bb.2, implicit $scc | ||
; CHECK-NEXT: {{ $}} | ||
; CHECK-NEXT: bb.1: | ||
; CHECK-NEXT: successors: %bb.2(0x80000000) | ||
; CHECK-NEXT: {{ $}} | ||
; CHECK-NEXT: S_WAITCNT 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. I see this version moves the waitcnt from the end of the block to the start of the successor blocks. 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. Nah, this waitcnt was just inserted before |
||
; CHECK-NEXT: S_NOP 0 | ||
; CHECK-NEXT: {{ $}} | ||
; CHECK-NEXT: bb.2: | ||
; CHECK-NEXT: S_WAITCNT 0 | ||
; CHECK-NEXT: S_NOP 0 | ||
bb.0: | ||
S_CBRANCH_SCC1 %bb.1, implicit $scc | ||
S_BRANCH %bb.2, implicit $scc | ||
bb.1: | ||
S_NOP 0 | ||
bb.2: | ||
S_NOP 0 | ||
... |
Uh oh!
There was an error while loading. Please reload this page.