mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
31d6000df6
We found current sampleFDO had a performance issue when triaging a regression. For a callsite with inline instance in the profile, even if hot callsite inliner cannot inline it, it may still execute enough times and should not be treated as cold in regular inliner later. However, currently if such callsite is not inlined by hot callsite inliner, and the BB where the callsite locates doesn't get samples from other instructions inside of it, the callsite will have no profile metadata annotated. In regular inliner cost analysis, if the callsite has no profile annotated and its caller has profile information, it will be treated as cold. The fix changes the isCallsiteHot check and chooses to compare CallsiteTotalSamples with hot cutoff value computed by ProfileSummaryInfo. Differential Revision: https://reviews.llvm.org/D45377 llvm-svn: 332058 |
||
---|---|---|
.. | ||
Inputs | ||
branch.ll | ||
calls.ll | ||
cov-zero-samples.ll | ||
coverage-warning.ll | ||
discriminator.ll | ||
early-inline.ll | ||
entry_counts.ll | ||
fnptr.ll | ||
function_metadata.ll | ||
gcc-simple.ll | ||
indirect-call-gcc.ll | ||
indirect-call.ll | ||
inline-act.ll | ||
inline-combine.ll | ||
inline-coverage.ll | ||
inline.ll | ||
nodebug.ll | ||
nolocinfo.ll | ||
offset.ll | ||
propagate.ll | ||
remarks.ll | ||
summary.ll | ||
syntax.ll | ||
warm-inline-instance.ll |