[all-commits] [llvm/llvm-project] 75edf0: [NFC] [Serialization] Avoid accessing PendingBodie...
Chuanqi Xu via All-commits
all-commits at lists.llvm.org
Wed Apr 10 20:12:42 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 75edf0c18c777d69df7cfc6462e5233649bd47d4
https://github.com/llvm/llvm-project/commit/75edf0c18c777d69df7cfc6462e5233649bd47d4
Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
Date: 2024-04-11 (Thu, 11 Apr 2024)
Changed paths:
M clang/include/clang/Serialization/ASTReader.h
M clang/lib/Serialization/ASTReaderDecl.cpp
Log Message:
-----------
[NFC] [Serialization] Avoid accessing PendingBodies as much as possible
The 'HaveBody' parameter in isConsumerInterestedIn is only used for the function decl if it
doesn't have a body already. It should be relatively less frequent than
the call to isConsumerInterestedIn. So we can delay the computing of
`HaveBdoy` to make it more efficient.
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