[all-commits] [llvm/llvm-project] c4436f: [clang] Use InMemoryModuleCache for readASTFileCon...
Ben Langmuir via All-commits
all-commits at lists.llvm.org
Thu Nov 17 13:52:00 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c4436f675d8f5903303fc13d2c2eff2c5800d49b
https://github.com/llvm/llvm-project/commit/c4436f675d8f5903303fc13d2c2eff2c5800d49b
Author: Ben Langmuir <blangmuir at apple.com>
Date: 2022-11-17 (Thu, 17 Nov 2022)
Changed paths:
M clang/include/clang/Serialization/ASTReader.h
M clang/lib/Frontend/CompilerInstance.cpp
M clang/lib/Frontend/FrontendAction.cpp
M clang/lib/Frontend/FrontendActions.cpp
M clang/lib/Serialization/ASTReader.cpp
M clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
Log Message:
-----------
[clang] Use InMemoryModuleCache for readASTFileControlBlock NFC
When a pcm has already been loaded from disk, reuse it from the
InMemoryModuleCache in readASTFileControlBlock. This avoids potentially
reading it again.
As noted in the FIXME, ideally we would also add the module to the cache
if it will be used again later, but that could modify its build state
and we do not have enough context currenlty to know if it's correct.
Differential Revision: https://reviews.llvm.org/D138160
More information about the All-commits
mailing list