codegen: Emit less dead IR for array accesses #65014
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 546 lines diff across 6 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
Diff Size
diff_size
0.377
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #65014"
general
weight: 0.35
KristofferC
LLVM gets rid of this dead IR quite cheaply so the point here is not really one of performance but more of "cleanliness" when reading the LLVM IR. I am not sure what the "policy" on this is w.r.t getting rid of instructions at this stage vs letting LLVM handle it.
Unchecked array read: 36 → 18 instructions
Unchecked memory-reference read: 14 → 8 instructions
Optimized IR is unchanged for both examples.