diff options
author | Taewook Oh <twoh@fb.com> | 2017-02-14 17:30:05 +0000 |
---|---|---|
committer | Taewook Oh <twoh@fb.com> | 2017-02-14 17:30:05 +0000 |
commit | f22fa72e4aa56ecbda42bc6eb1cd53a8421e9a57 (patch) | |
tree | 0aa5f0c316fa151a48cb5bdfc7a4c850ee7d31d8 /lldb/unittests/Utility/ModuleCacheTest.cpp | |
parent | 4c98023724f3438f7d5ebc12cf7e384348a48d79 (diff) | |
download | bcm5719-llvm-f22fa72e4aa56ecbda42bc6eb1cd53a8421e9a57.tar.gz bcm5719-llvm-f22fa72e4aa56ecbda42bc6eb1cd53a8421e9a57.zip |
Do not apply redundant LastCallToStaticBonus
Summary:
As written in the comments above, LastCallToStaticBonus is already applied to
the cost if Caller has only one user, so it is redundant to reapply the bonus
here.
If the only user is not a caller, TotalSecondaryCost will not be adjusted
anyway because callerWillBeRemoved is false. If there's no caller at all, we
don't need to care about TotalSecondaryCost because
inliningPreventsSomeOuterInline is false.
Reviewers: chandlerc, eraman
Reviewed By: eraman
Subscribers: haicheng, davidxl, davide, llvm-commits, mehdi_amini
Differential Revision: https://reviews.llvm.org/D29169
llvm-svn: 295075
Diffstat (limited to 'lldb/unittests/Utility/ModuleCacheTest.cpp')
0 files changed, 0 insertions, 0 deletions