forked from OSchip/llvm-project
ca6e60971e
This commit adds an optimization to clang-scan-deps and clang's preprocessor that skips excluded preprocessor blocks by bumping the lexer pointer, and not lexing the tokens until reaching appropriate #else/#endif directive. The skip positions and lexer offsets are computed when the file is minimized, directly from the minimized tokens. On an 18-core iMacPro with macOS Catalina Beta I got 10-15% speed-up from this optimization when running clang-scan-deps on the compilation database for a recent LLVM and Clang (3511 files). Differential Revision: https://reviews.llvm.org/D67127 llvm-svn: 371656 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
DependencyDirectivesSourceMinimizerTest.cpp | ||
HeaderMapTest.cpp | ||
HeaderSearchTest.cpp | ||
LexerTest.cpp | ||
PPCallbacksTest.cpp | ||
PPConditionalDirectiveRecordTest.cpp |