[sancov][NFC] Improve -union performance of sancov utility / Add a RawAddrSet typedef (1/3) #238753
All Vouch review confidence checks passed
Residual risk 0.05 = Change Risk (0.19) × (1 − Review Confidence (0.72)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.19 · 14 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.54 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
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.162
Real PR Conversation Timeline
4 items
Approved
Approved these changes.
Improve -union performance of sancov utility / Add a RawAddrSet typedef (1/3)- #238753
This PR just 'using RawAddrSet = std::set<uint64_t>;', so it should be described as that.
You can mention this this is preparation for #238757.
Approved
Approved these changes.
jmmartinez
mgcarrasco
These stacked PRs improve the performance of -union for a large number of sancov files. This was tested with sancov files emitted by llc while running the LLVM test suite. These changes reduce the processing time from 548s to 15s for 69,146 files.
The changes are summarised as follows:
The stack is a mirror of https://github.com/llvm/llvm-project/pull/234145 which wasn't stacked.
---
This PR typedefs the sancov address set as
RawAddrSet. It still uses the same underlying containerstd::set<uint64_t>. It also drops theexplicitkeyword from the constructor as requested.Assisted-by: Cursor (Grok 4.7)