Skip to content

Commit eb79e34

Browse files
[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] https://github.com/llvm/llvm-project/blame/e015626f189dc76f8df9fdc25a47638c6a2f3feb/llvm/lib/ProfileData/SampleProfReader.cpp#L414-L416 [2] https://github.com/llvm/llvm-project/blame/e015626f189dc76f8df9fdc25a47638c6a2f3feb/llvm/lib/ProfileData/SampleProfReader.cpp#L400-L402
1 parent 15c3ade commit eb79e34

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/lib/ProfileData/SampleProfReader.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,6 @@ std::error_code SampleProfileReaderText::readImpl() {
411411
break;
412412
}
413413
case LineType::BodyProfile: {
414-
while (InlineStack.size() > Depth) {
415-
InlineStack.pop_back();
416-
}
417414
FunctionSamples &FProfile = *InlineStack.back();
418415
for (const auto &name_count : TargetCountMap) {
419416
mergeSampleProfErrors(Result, FProfile.addCalledTargetSamples(

0 commit comments

Comments
 (0)