llvm-project
7016d432 - [NFC][SpecialCaseList] Convert `preprocess` into `LazyInit` (#167281)

Commit
162 days ago
[NFC][SpecialCaseList] Convert `preprocess` into `LazyInit` (#167281) Currently SpecialCaseList created at least twice, one on by `Driver`, for diagnostics only, and then the real one by the `ASTContext`. Also, deppending on enabled sanitizers, not all sections will be used. In both cases there is unnecessary RadixTree construction. This patch changes `GlobMatcher` to do initialization lazily only when needed. And remove empty one from `RegexMatcher`. This saves saves 0.5% of clang time building large project.
Author
Parents
Loading