Skip to content

direct compute: SCC liveness treats SCC-neutral SOP1 ops as SCC readers #3174

Done

Description

@Leyukaka

Part of #2935 (instruction coverage). Target branch main. I am taking it.

Gap. The direct compute SCC liveness (DirectCompute::uses_scc_after) treats every SOP1 outside a short list as an unknown SCC reader. An SCC written by a byte-window descriptor rewrite therefore stays live past instructions that neither read nor write SCC, such as s_ff1_i32_b64. The rewrite is then refused with "numeric SCC from a symbolic descriptor field".

Measured on a local capture of 2,689 compute requests (counts and instruction shape only), with compile_dxil --jobs 8 gfx1013-direct-cs@36 --requests on main 6057071b (the commits since then do not touch gfx1013_compute_native.cpp or gfx1013_direct_compute.inl):

  • 13 requests stop first at that refusal; 6 of them because of this.
  • With the change, 1 compiles (403 to 404). 3 stop at "direct descriptor address outside bound table", and 2 at s_ff1_i32_b64 with an EXEC source, which stays refused.

Plan: classify the SOP1 ops the direct path lowers by their SCC behaviour.

Unclassified ops keep the conservative rule.

Tests: compile controls. The rewrite followed by s_ff1_i32_b64 and s_brev_b32 compiles. The same rewrite followed by s_cselect_b32 stays refused.

AI-assisted.

Activity

  1. added a commit that references this issue on Nov 27, 2026
    995c132
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions