aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CommandLineTest.cpp
diff options
context:
space:
mode:
authorHongtao Yu <hoy@fb.com>2020-07-30 18:22:50 -0700
committerHongtao Yu <hoy@fb.com>2020-07-31 09:30:05 -0700
commitd23c1d6a8dddf0e1b9b9fa64726941e402ede8af (patch)
treec8832d056885bb70ea271bb9b08672afdb0f03eb /llvm/unittests/Support/CommandLineTest.cpp
parentc75c7d51968d397e5521c8b6c1e906bde1245af6 (diff)
downloadllvm-d23c1d6a8dddf0e1b9b9fa64726941e402ede8af.zip
llvm-d23c1d6a8dddf0e1b9b9fa64726941e402ede8af.tar.gz
llvm-d23c1d6a8dddf0e1b9b9fa64726941e402ede8af.tar.bz2
[AutoFDO] Avoid merging inlinee samples multiple times
A function call can be replicated by optimizations like loop unroll and jump threading and the replicates end up sharing the sample nested callee profile. Therefore when it comes to merging samples for uninlined callees in the sample profile inliner, a callee profile can be merged multiple times which will cause an assert to fire. This change avoids merging same callee profile for duplicate callsites by filtering out callee profiles with a non-zero head sample count. Reviewed By: wenlei, wmi Differential Revision: https://reviews.llvm.org/D84997
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions