-
Notifications
You must be signed in to change notification settings - Fork 15.5k
[AMDGPU] Unused sdst writing to null #133229
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 1 commit
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 |
|---|---|---|
|
|
@@ -39,7 +39,8 @@ define amdgpu_ps void @v_add_u64(ptr addrspace(1) %out, i64 %a, i64 %b) { | |
| ; GCN-LABEL: v_add_u64: | ||
| ; GCN: ; %bb.0: ; %entry | ||
| ; GCN-NEXT: v_add_co_u32 v2, vcc_lo, v2, v4 | ||
| ; GCN-NEXT: v_add_co_ci_u32_e32 v3, vcc_lo, v3, v5, vcc_lo | ||
| ; GCN-NEXT: s_delay_alu instid0(VALU_DEP_1) | ||
|
Contributor
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. Adds an extra instruction, is this really better?
Author
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. Delay alu pass skips implicit def ops (suppose that should be done since it's marked with TODO). VOP2: VOP3: In VOP2, vcc is implicit so delay alu will not consider it, but as I understood the correct behaviour would be for delay_alu to be in both?
Contributor
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. There are two things going on here:
|
||
| ; GCN-NEXT: v_add_co_ci_u32_e64 v3, null, v3, v5, vcc_lo | ||
| ; GCN-NEXT: global_store_b64 v[0:1], v[2:3], off | ||
| ; GCN-NEXT: s_endpgm | ||
| entry: | ||
|
|
@@ -85,7 +86,8 @@ define amdgpu_ps void @v_sub_u64(ptr addrspace(1) %out, i64 %a, i64 %b) { | |
| ; GCN-LABEL: v_sub_u64: | ||
| ; GCN: ; %bb.0: ; %entry | ||
| ; GCN-NEXT: v_sub_co_u32 v2, vcc_lo, v2, v4 | ||
| ; GCN-NEXT: v_sub_co_ci_u32_e32 v3, vcc_lo, v3, v5, vcc_lo | ||
| ; GCN-NEXT: s_delay_alu instid0(VALU_DEP_1) | ||
| ; GCN-NEXT: v_sub_co_ci_u32_e64 v3, null, v3, v5, vcc_lo | ||
| ; GCN-NEXT: global_store_b64 v[0:1], v[2:3], off | ||
| ; GCN-NEXT: s_endpgm | ||
| entry: | ||
|
|
||
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.
Merge this with the existing hasVALU32BitEncoding check below