[all-commits] [llvm/llvm-project] f60788: [clang] Speedup LineOffsetMapping::get
serge-sans-paille via All-commits
all-commits at lists.llvm.org
Wed Nov 30 05:36:25 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f607884a04b0ca06951227a01d00bc59b948d337
https://github.com/llvm/llvm-project/commit/f607884a04b0ca06951227a01d00bc59b948d337
Author: serge-sans-paille <sguelton at mozilla.com>
Date: 2022-11-30 (Wed, 30 Nov 2022)
Changed paths:
M clang/lib/Basic/SourceManager.cpp
Log Message:
-----------
[clang] Speedup LineOffsetMapping::get
LineOffsetMapping::get is a critical function that consistently appears
in the top 5 more computation intensive functions when running the
preprocessor.
This change brings consistent speedup of ~.5% on, preprocessing time,
see
https://llvm-compile-time-tracker.com/compare.php?from=0745b0c0354a0c8e1fefb68a3876d15db6c2e27a&to=460f3f04dac025e6952d78fce104a88151508a29&stat=instructions:u
for detailed statistics.
Differential Revision: https://reviews.llvm.org/D138474
More information about the All-commits
mailing list