diff options
author | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2024-04-11 11:05:55 +0800 |
---|---|---|
committer | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2024-04-11 11:08:58 +0800 |
commit | 75edf0c18c777d69df7cfc6462e5233649bd47d4 (patch) | |
tree | 09c25ac56d964e0d9b816a407b1849fc80bf0436 /llvm/lib/CodeGen/MachineCombiner.cpp | |
parent | dda73336ad22bd0b5ecda17040c50fb10fcbe5fb (diff) | |
download | llvm-75edf0c18c777d69df7cfc6462e5233649bd47d4.zip llvm-75edf0c18c777d69df7cfc6462e5233649bd47d4.tar.gz llvm-75edf0c18c777d69df7cfc6462e5233649bd47d4.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/CodeGen/MachineCombiner.cpp')
0 files changed, 0 insertions, 0 deletions