[all-commits] [llvm/llvm-project] 3c775d: [InlineCost] Reject a zero entry count
kazutakahirata via All-commits
all-commits at lists.llvm.org
Thu Mar 25 21:52:13 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3c775d93a1dda3cec3bb6c7617c4b4ab770f4af0
https://github.com/llvm/llvm-project/commit/3c775d93a1dda3cec3bb6c7617c4b4ab770f4af0
Author: Kazu Hirata <kazu at google.com>
Date: 2021-03-25 (Thu, 25 Mar 2021)
Changed paths:
M llvm/lib/Analysis/InlineCost.cpp
Log Message:
-----------
[InlineCost] Reject a zero entry count
This patch teaches the cost-benefit-analysis-based inliner to reject a
zero entry count so that we don't trigger a divide-by-zero.
Commit: 9d375a40c3df90dd48edc0e1b1115c702c55d716
https://github.com/llvm/llvm-project/commit/9d375a40c3df90dd48edc0e1b1115c702c55d716
Author: Kazu Hirata <kazu at google.com>
Date: 2021-03-25 (Thu, 25 Mar 2021)
Changed paths:
M llvm/lib/Analysis/InlineCost.cpp
Log Message:
-----------
Reapply [InlineCost] Enable the cost benefit analysis on FDO
This patch enables the cost-benefit-analysis-based inliner by default
if we have instrumentation profile.
- SPEC CPU 2017 shows a 0.4% improvement.
- An internal large benchmark shows a 0.9% reduction in the cycle
count along with 14.6% reduction in the number of call instructions
executed.
Differential Revision: https://reviews.llvm.org/D98213
Compare: https://github.com/llvm/llvm-project/compare/ec46e03daf54...9d375a40c3df
More information about the All-commits
mailing list