diff options
author | Haojian Wu <hokein.wu@gmail.com> | 2025-07-04 22:11:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-04 22:11:59 +0200 |
commit | e2510b189dae1a18c1e84ea69c99ff417950e03a (patch) | |
tree | 3a81b6b58ad7ab6525e6d33d5604816955e7d49f /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 372752c2ddd0919a305d6019e30077829dea2858 (diff) | |
download | llvm-e2510b189dae1a18c1e84ea69c99ff417950e03a.zip llvm-e2510b189dae1a18c1e84ea69c99ff417950e03a.tar.gz llvm-e2510b189dae1a18c1e84ea69c99ff417950e03a.tar.bz2 |
[clang] SourceManager: Cache offsets for LastFileIDLookup to speed up getFileID (#146782)
`getFileID` is a hot method. By caching the offset range in
`LastFileIDLookup`, we can more quickly check whether a given offset
falls within it, avoiding calling `isOffsetInFileID`.
https://llvm-compile-time-tracker.com/compare.php?from=0588e8188c647460b641b09467fe6b13a8d510d5&to=64843a500f0191b79a8109da9acd7e80d961c7a3&stat=instructions:u
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions