aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authoryronglin <yronglin777@gmail.com>2025-06-26 08:49:43 +0800
committerGitHub <noreply@github.com>2025-06-26 08:49:43 +0800
commit0529a346007cecab95c6820a60cb3e4e36f34990 (patch)
treed3fbf476f06d373422bfafadd3696067faf801b2 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent63b14b3f2bf6abd96d9a6cf0cec9e9447b7a3744 (diff)
downloadllvm-0529a346007cecab95c6820a60cb3e4e36f34990.zip
llvm-0529a346007cecab95c6820a60cb3e4e36f34990.tar.gz
llvm-0529a346007cecab95c6820a60cb3e4e36f34990.tar.bz2
[clang][Preprocessor] Handle the first pp-token in EnterMainSourceFile (#145244)
Depends on [[clang][Preprocessor] Add peekNextPPToken, makes look ahead next token without side-effects](https://github.com/llvm/llvm-project/pull/143898). This PR fix the performance regression that introduced in https://github.com/llvm/llvm-project/pull/144233. The original PR(https://github.com/llvm/llvm-project/pull/144233) handle the first pp-token in the main source file in the macro definition/expansion and `Lexer::Lex`, but the lexer is almost always on the hot path, we may hit a performance regression. In this PR, we handle the first pp-token in `Preprocessor::EnterMainSourceFile`. --------- Signed-off-by: yronglin <yronglin777@gmail.com>
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions