← Back to Pull requests

[rocjitsu][fi] Add CDNA3 and CDNA4 ordinary acquire address recipes #16787

Open
unknown opened this pull request with 266 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 25, 2026 07:55 UTC
Author

The modern ordinary profiles cannot qualify the native eight-byte loads on
gfx942 and gfx950. Their acquire sequence uses s_waitcnt and
buffer_inv, and recognizing those mnemonics alone is insufficient: a
low-scope load or ineffective invalidation cannot establish the required
Agent acquire boundary.

Add Cdna34GlobalDword qualification and address mutation for both targets
at wave64. Associate global_load_dword, vmcnt(0) and buffer_inv through
the existing bounded acquire query, retaining its function-container and
complete execution-owner checks. Check wave64 for every affected CDNA
owner, including callers of shared helpers.

Prove the load and cache controls independently. Load SC1 at word0 bit25
must be set for Device/System scope; load SC0 and NT remain independent.
Cache SC1 at bit15 must also be set, accepting either cache SC0 value.
Cache flags 00 are a NOP, while 01 depends on unproved TG_SPLIT, so
neither enters the qualified inventory. Leave public raw_scope absent
because these native controls are not a literal GFX12 scope field.

Reuse source-bound selection, saved-proof checks and independent mutation
batches. Apply the checked positive, four-byte-aligned delta to the native
signed13 GLOBAL immediate, rejecting overflow or an unaligned result.
Preserve load operands, scope controls, hints and the complete wait/cache
sequence through the shared library and CLI. Native source/replacement
examples keep scratch-only SVE clear while retaining valid ignored operands;
this does not add a new decoder-legality policy.

For example, this schematic qualified sequence omits register operands;
offsets are relative to pristine .text:

0x00  global_load_dword ... offset:-4 SC1:1   (8 bytes)
0x08  s_waitcnt vmcnt(0)                      (4 bytes)
0x0c  buffer_inv SC1:1 SC0:0                  (8 bytes)

delta +8 -> load offset +4; wait/cache and all other fields remain

Clearing either instruction's SC1 removes this candidate even if the
other instruction still qualifies. Such a load consumes no qualified
ordinal and cannot produce an address mutant.

Diff: 266 lines (+199 / -67) across 3 files Reviewer: hanhanW Review duration: 8648m
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 266 lines diff across 3 files
0.39
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.334
Real PR Conversation Timeline
1 comments
"Review active on #16787"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 39.4% (MEDIUM) · Higher = larger blast radius
39.4%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 46.7% · Lower = rushed or shallow review
46.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 21.0% · Safe to merge
21.0%