With discriminator, LineLocation can uniquely identify a callsite without the need to specifying callee name. Remove Callee function name from the key, and put it in the value (FunctionSamples).
Details
Diff Detail
Event Timeline
Nice cleanup! I think we can prevent breaking the AutoFDO tool by adding an overload.
include/llvm/ProfileData/SampleProf.h | ||
---|---|---|
284 | Add documentation for this field. Indicate that this is the mangled name of the function. | |
include/llvm/ProfileData/SampleProfWriter.h | ||
38–43 | This will break the AutoFDO tool. Idea: keep the old call as a temporary overload. This gives you time to fix AutoFDO without it breaking on you in the interim. The version of SampleProfileWriter::write() that takes FName as an argument simply does nothing with it. |
keep old writer interface.
include/llvm/ProfileData/SampleProfWriter.h | ||
---|---|---|
38–43 | Thanks for bring this up. |
LGTM. Thanks.
Just to make sure AutoFDO is still working, would you mind building it with your LLVM build to make sure that create_llvm_prof still works?
Add documentation for this field. Indicate that this is the mangled name of the function.