[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:
parent
dc257a4609
commit
ef2ec1fbac
@ -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),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user