diff options
author | Vitaly Buka <vitalybuka@google.com> | 2025-10-13 17:19:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-14 00:19:23 +0000 |
commit | 301d0089fe408ef34907e74a5abb613aa68d2680 (patch) | |
tree | 51f4e6e519f7e3c41a1dad0bc0b4b7789cad252a /llvm/lib/Support/TextEncoding.cpp | |
parent | 645745f9de7ea7bfc63848bf900dc424896a37e9 (diff) | |
download | llvm-301d0089fe408ef34907e74a5abb613aa68d2680.zip llvm-301d0089fe408ef34907e74a5abb613aa68d2680.tar.gz llvm-301d0089fe408ef34907e74a5abb613aa68d2680.tar.bz2 |
[SpecialCaseList] Support early return from matching (#163279)
On average it saves half positive of Glob matching.
However, in real build most SpecialCaseList unmatched,
this change should not affect this case.
To be able to do so without breaking behavior, we
need to re-order matches according precedence.
Usually it's LineNo, and it's already ordered,
but Diagnostic requires reordering by rule length.
Co-authored-by: Rahul Joshi <rjoshi@nvidia.com>
Diffstat (limited to 'llvm/lib/Support/TextEncoding.cpp')
0 files changed, 0 insertions, 0 deletions