summaryrefslogtreecommitdiffstats
path: root/llvm/utils/opt-viewer/opt-viewer.py
diff options
context:
space:
mode:
authorTaewook Oh <twoh@fb.com>2017-02-14 17:30:05 +0000
committerTaewook Oh <twoh@fb.com>2017-02-14 17:30:05 +0000
commitf22fa72e4aa56ecbda42bc6eb1cd53a8421e9a57 (patch)
tree0aa5f0c316fa151a48cb5bdfc7a4c850ee7d31d8 /llvm/utils/opt-viewer/opt-viewer.py
parent4c98023724f3438f7d5ebc12cf7e384348a48d79 (diff)
downloadbcm5719-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 'llvm/utils/opt-viewer/opt-viewer.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud