[all-commits] [llvm/llvm-project] 13011f: [Clang] Optimize some `getBeginLoc` implementation...
cor3ntin via All-commits
all-commits at lists.llvm.org
Thu May 29 01:26:16 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 13011f21d611ade2f12cf441a1ac76e7ebabe3d0
https://github.com/llvm/llvm-project/commit/13011f21d611ade2f12cf441a1ac76e7ebabe3d0
Author: cor3ntin <corentinjabot at gmail.com>
Date: 2025-05-29 (Thu, 29 May 2025)
Changed paths:
M clang/include/clang/AST/Expr.h
M clang/include/clang/AST/NestedNameSpecifier.h
M clang/include/clang/AST/Stmt.h
M clang/lib/AST/Expr.cpp
M clang/lib/AST/ExprCXX.cpp
M clang/lib/AST/NestedNameSpecifier.cpp
M clang/lib/Sema/SemaOpenCL.cpp
M clang/lib/Sema/SemaOverload.cpp
M clang/lib/Serialization/ASTReaderStmt.cpp
M clang/lib/Serialization/ASTWriterStmt.cpp
Log Message:
-----------
[Clang] Optimize some `getBeginLoc` implementations (#141058)
The bulk of the changes are in `CallExpr`
We cache Begin/End source locs in the trailing objects, in the space
left by making the offset to the trailing objects static.
We also set a flag to indicate that we are calling an explicit object
member function, further reducing the cost of getBeginLoc.
Fixes #140876
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list