[all-commits] [llvm/llvm-project] 57c775: [clang][DependencyScanner] Cache modulemap stat fa...
Michael Spencer via All-commits
all-commits at lists.llvm.org
Tue Mar 7 15:14:34 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 57c7750f703ddee9025f819cdd01c9e97666e7ab
https://github.com/llvm/llvm-project/commit/57c7750f703ddee9025f819cdd01c9e97666e7ab
Author: Michael Spencer <bigcheesegs at gmail.com>
Date: 2023-03-07 (Tue, 07 Mar 2023)
Changed paths:
M clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
Log Message:
-----------
[clang][DependencyScanner] Cache modulemap stat failures
Add `module.modulemap` as a file we cache stat failures for as there
are a lot of stats for this file.
Clang currently uses the files it should minimize as a proxy for files
it should cache stat failures for, but really we should cache stat
failures for all paths we don't expect to change during the build.
Unfortunately the VFS API does not know _why_ clang is trying to stat
a path, so we use the filename as a proxy.
Differential Revision: https://reviews.llvm.org/D145526
More information about the All-commits
mailing list