aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCombiner.cpp
diff options
context:
space:
mode:
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>2024-04-11 11:05:55 +0800
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>2024-04-11 11:08:58 +0800
commit75edf0c18c777d69df7cfc6462e5233649bd47d4 (patch)
tree09c25ac56d964e0d9b816a407b1849fc80bf0436 /llvm/lib/CodeGen/MachineCombiner.cpp
parentdda73336ad22bd0b5ecda17040c50fb10fcbe5fb (diff)
downloadllvm-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