basic: Optimize vector_creation kernel generation to reduce compile time #2870
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.32) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.32 · 125 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.344
Diff Size
diff_size
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2870"
general
weight: 0.35
shajder
Previously, create_kernel emitted all vector permutations sequentially into a single work-item basic block, repeating every src[offset] and vloadN(0, src + offset) load inline and issuing an independent global store for every permutation. On large vector sizes (such as vec16 with hundreds of permutations per kernel), the thousands of redundant loads and global stores in a single basic block caused quadratic compile times in shader/kernel compiler optimization passes (e.g. NIR copy propagation and dead code elimination in Mesa/Lavapipe).
Improve compilation time without reducing test coverage by:
[run-test: test_basic vector_creation]