From ef2ec1fbaca4c8194a66d1659428bd55728d5eae Mon Sep 17 00:00:00 2001 From: Jinjie Huang Date: Tue, 13 Jan 2026 14:25:47 +0800 Subject: [PATCH] [CSSPGO][NFC] Remove unused code in finalizeWeightPropagation() (#175521) Remove unused code since the usage of `EntryWeight` was dropped in [D134756](https://reviews.llvm.org/D134756). --- llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h | 1 - 1 file changed, 1 deletion(-) diff --git a/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h b/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h index 12d1031fd37a..fc2b13356350 100644 --- a/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h +++ b/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h @@ -1088,7 +1088,6 @@ void SampleProfileLoaderBaseImpl::finalizeWeightPropagation( // Samples->getHeadSamples() + 1 to avoid functions with zero count. if (SampleProfileUseProfi) { const BasicBlockT *EntryBB = getEntryBB(&F); - ErrorOr EntryWeight = getBlockWeight(EntryBB); if (BlockWeights[EntryBB] > 0) { getFunction(F).setEntryCount( ProfileCount(BlockWeights[EntryBB], Function::PCT_Real),