extractProfTotalWeight checks if the profile type is sample profile, but before that we have to ensure that summary is available. Also expanded the unittest to test the case where there is no summary.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
lgtm
unittests/Analysis/ProfileSummaryInfoTest.cpp | ||
---|---|---|
101 | It is slightly more readable to do: const char *ProfKind = nullptr; |
It is slightly more readable to do:
const char *ProfKind = nullptr;
auto M = makeLLVMModule(ProfKind);