[NFCI] Clean up idempotent stack pop for inline context (#141544)
In the top-of-tree, the stack pops at L414-416 [1] are no-op since there are prior stack pops at L400-402. [1]e015626f18/llvm/lib/ProfileData/SampleProfReader.cpp (L414-L416)[2]e015626f18/llvm/lib/ProfileData/SampleProfReader.cpp (L400-L402)
This commit is contained in:
@@ -411,9 +411,6 @@ std::error_code SampleProfileReaderText::readImpl() {
|
||||
break;
|
||||
}
|
||||
case LineType::BodyProfile: {
|
||||
while (InlineStack.size() > Depth) {
|
||||
InlineStack.pop_back();
|
||||
}
|
||||
FunctionSamples &FProfile = *InlineStack.back();
|
||||
for (const auto &name_count : TargetCountMap) {
|
||||
mergeSampleProfErrors(Result, FProfile.addCalledTargetSamples(
|
||||
|
||||
Reference in New Issue
Block a user