diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2022-01-27 22:17:16 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2022-06-04 11:59:19 +0000 | 
| commit | 390adc38fc112be360bd15499e5241bf4e675b6f (patch) | |
| tree | 712d68d3aa03f7aa4902ba03dcac2a56f49ae0e5 /contrib/llvm-project/llvm/lib/ProfileData/SampleProfReader.cpp | |
| parent | 8a84287b0edc66fc6dede3db770d10ff41da5464 (diff) | |
Diffstat (limited to 'contrib/llvm-project/llvm/lib/ProfileData/SampleProfReader.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/ProfileData/SampleProfReader.cpp | 9 | 
1 files changed, 4 insertions, 5 deletions
diff --git a/contrib/llvm-project/llvm/lib/ProfileData/SampleProfReader.cpp b/contrib/llvm-project/llvm/lib/ProfileData/SampleProfReader.cpp index da16309fb82c..80c02faaba04 100644 --- a/contrib/llvm-project/llvm/lib/ProfileData/SampleProfReader.cpp +++ b/contrib/llvm-project/llvm/lib/ProfileData/SampleProfReader.cpp @@ -655,6 +655,8 @@ std::error_code SampleProfileReaderExtBinaryBase::readOneSection(        Summary->setPartialProfile(true);      if (hasSecFlag(Entry, SecProfSummaryFlags::SecFlagFullContext))        FunctionSamples::ProfileIsCSFlat = ProfileIsCSFlat = true; +    if (hasSecFlag(Entry, SecProfSummaryFlags::SecFlagIsCSNested)) +      FunctionSamples::ProfileIsCSNested = ProfileIsCSNested;      if (hasSecFlag(Entry, SecProfSummaryFlags::SecFlagFSDiscriminator))        FunctionSamples::ProfileIsFS = ProfileIsFS = true;      break; @@ -688,9 +690,6 @@ std::error_code SampleProfileReaderExtBinaryBase::readOneSection(      ProfileIsProbeBased =          hasSecFlag(Entry, SecFuncMetadataFlags::SecFlagIsProbeBased);      FunctionSamples::ProfileIsProbeBased = ProfileIsProbeBased; -    ProfileIsCSNested = -        hasSecFlag(Entry, SecFuncMetadataFlags::SecFlagIsCSNested); -    FunctionSamples::ProfileIsCSNested = ProfileIsCSNested;      bool HasAttribute =          hasSecFlag(Entry, SecFuncMetadataFlags::SecFlagHasAttribute);      if (std::error_code EC = readFuncMetadata(HasAttribute)) @@ -1276,6 +1275,8 @@ static std::string getSecFlagsStr(const SecHdrTableEntry &Entry) {        Flags.append("partial,");      if (hasSecFlag(Entry, SecProfSummaryFlags::SecFlagFullContext))        Flags.append("context,"); +    if (hasSecFlag(Entry, SecProfSummaryFlags::SecFlagIsCSNested)) +      Flags.append("context-nested,");      if (hasSecFlag(Entry, SecProfSummaryFlags::SecFlagFSDiscriminator))        Flags.append("fs-discriminator,");      break; @@ -1288,8 +1289,6 @@ static std::string getSecFlagsStr(const SecHdrTableEntry &Entry) {        Flags.append("probe,");      if (hasSecFlag(Entry, SecFuncMetadataFlags::SecFlagHasAttribute))        Flags.append("attr,"); -    if (hasSecFlag(Entry, SecFuncMetadataFlags::SecFlagIsCSNested)) -      Flags.append("preinlined,");      break;    default:      break;  | 
