[DispatchCreation] Tighten scatter-skip predicate in CollapseDimensions #24334
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.31) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.31 · 115 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.289
Diff Size
diff_size
0.284
Real PR Conversation Timeline
1 comments
"Review active on #24334"
general
weight: 0.35
yzhang93
PR #24034 skipped collapse for any
linalg.genericwith atensor.extractand alinalg.indexin its body, in order to avoid an expensive delinearization on strided-scatter generics produced byConvertStridedInsertSliceToGeneric. That predicate was too broad and caught the RoPE + FP8 dispatch in Llama-8B, whose fused body also hastensor.extract+linalg.index(rotate_half lookup) but is not a strided scatter; the collateral block prevents the4×batch×seqouter collapse and produces a 5-D dispatch (4x2048x8x2x64) that tiles ~3.5x slower on gfx942 than the pre-#240348192x8x128shape.Tighten the predicate to require all three signals of the strided-scatter shape: empty
insoperands (source captured viatensor.extract), at least onelinalg.index, and atensor.extractwhose result is consumed by anarith.select(the bounds check).Fixes: https://github.com/iree-org/iree/issues/24322