[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).
This commit is contained in:
Jinjie Huang 2026-01-13 14:25:47 +08:00 committed by GitHub
parent dc257a4609
commit ef2ec1fbac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1088,7 +1088,6 @@ void SampleProfileLoaderBaseImpl<BT>::finalizeWeightPropagation(
// Samples->getHeadSamples() + 1 to avoid functions with zero count.
if (SampleProfileUseProfi) {
const BasicBlockT *EntryBB = getEntryBB(&F);
ErrorOr<uint64_t> EntryWeight = getBlockWeight(EntryBB);
if (BlockWeights[EntryBB] > 0) {
getFunction(F).setEntryCount(
ProfileCount(BlockWeights[EntryBB], Function::PCT_Real),