When -sample-profile-merge-inlinee is enabled, new FunctionSamples may be created during profile merge without GUIDToFuncNameMap being initialized. That will occasionally cause compiler crash. The patch fixes it.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Just realized this is fixing the same issue as @hoyFB's D84997 - we ran into it immediately after -sample-profile-merge-inlinee is turned on too.
It looks to me that we only need to transfer GUIDToFuncNameMap during merge as the map is shared, so it can be done at merge time like D84997. What do you think? That's the fixed we used internally.
nit: name it UpdateFunctionSamples