diff options
author | Hongtao Yu <hoy@fb.com> | 2022-02-14 09:33:54 -0800 |
---|---|---|
committer | Hongtao Yu <hoy@fb.com> | 2022-02-14 18:07:11 -0800 |
commit | 62ef77ca63c1541e707a2ec5965f08c8320b6876 (patch) | |
tree | c08e8addd72cdf075bab893c2c9467933dd0ab35 /llvm/lib/ProfileData/SampleProfReader.cpp | |
parent | effd6dd63a65f201b4f8f1be6a025b0608604449 (diff) | |
download | llvm-62ef77ca63c1541e707a2ec5965f08c8320b6876.zip llvm-62ef77ca63c1541e707a2ec5965f08c8320b6876.tar.gz llvm-62ef77ca63c1541e707a2ec5965f08c8320b6876.tar.bz2 |
[CSSPGO] Do not merge a context that is already duplicated into the base profile.
Do not merge a context that is already duplicated into the base profile.
Also fixing a typo caused by previous refactoring.
Reviewed By: wenlei
Differential Revision: https://reviews.llvm.org/D119735
Diffstat (limited to 'llvm/lib/ProfileData/SampleProfReader.cpp')
-rw-r--r-- | llvm/lib/ProfileData/SampleProfReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/SampleProfReader.cpp b/llvm/lib/ProfileData/SampleProfReader.cpp index 80c02fa..5ccf734 100644 --- a/llvm/lib/ProfileData/SampleProfReader.cpp +++ b/llvm/lib/ProfileData/SampleProfReader.cpp @@ -656,7 +656,7 @@ std::error_code SampleProfileReaderExtBinaryBase::readOneSection( if (hasSecFlag(Entry, SecProfSummaryFlags::SecFlagFullContext)) FunctionSamples::ProfileIsCSFlat = ProfileIsCSFlat = true; if (hasSecFlag(Entry, SecProfSummaryFlags::SecFlagIsCSNested)) - FunctionSamples::ProfileIsCSNested = ProfileIsCSNested; + FunctionSamples::ProfileIsCSNested = ProfileIsCSNested = true; if (hasSecFlag(Entry, SecProfSummaryFlags::SecFlagFSDiscriminator)) FunctionSamples::ProfileIsFS = ProfileIsFS = true; break; |