← Back to Pull requests

[BoundsSafety][NFC][Test] Update O2 CodeGen checks for wide-pointer copy TBAA #15195

Merged
steakhal merged 1 files (112 lines) on Nov 26, 2026 01:17 UTC
View on GitHub
steakhal steakhal commented on Nov 26, 2026 01:16 UTC
Author

llvm.org 0fddc43e4af9 ("[TBAA] Preserve tags when an access ends within a field") makes SROA tag the loads it splits out of a __bidi_indexable/__indexable copy. Clang describes the copy with a single !tbaa.struct field, so these loads now get the pointer TBAA tag. This shifts the metadata numbering in the affected O2 tests.

  • Updates the 14 affected tests: the compound-literal-*-O2 tests, flexible-array-member-bidi-O2.c, and counted_by_or_null_call-O2.c and sized_by_or_null_call-O2.c in both BoundsSafety and BoundsSafety-legacy-checks.

  • Regenerated with update_cc_test_checks.py from the C RUN line only, since the C and Objective-C RUN lines conflict in the script. Both RUN lines pass with the regenerated checks.

  • Most of the diff is FileCheck variable renames; the semantic changes are the new !tbaa on copyloads and metadata/attribute renumbering.
  • rdar://193660765

    Assisted-By: Claude

    Diff: 112 lines (+84 / -28) across 1 files Reviewer: None requested Review duration: 1m
    All Vouch review confidence checks passed
    Residual risk 0.49 = Change Risk (0.58) × (1 − Review Confidence (0.16)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.58 · 112 lines diff across 1 files
    0.58
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 43% · Reviewer familiarity: 10%
    15%
    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.283
    No Reviewer Assigned no_reviewer_assigned
    0.120
    Rapid Merge rapid_merge
    0.100
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #15195"
    general weight: 0.35
    Reviewers
    None requested
    Assignees
    steakhal steakhal
    Labels
    risk: medium confidence: 15.5% 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: 58.3% (MEDIUM) · Higher = larger blast radius
    58.3%
    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: 15.5% · Lower = rushed or shallow review
    15.5%
    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: 49.2% · Moderate risk
    49.2%