[bolt] Remove redundaunt control-flow statements (NFC)

Identified with readability-redundant-control-flow.
This commit is contained in:
Kazu Hirata 2022-07-30 10:35:49 -07:00
parent 60db8d9b4e
commit b498a8991e
6 changed files with 0 additions and 9 deletions

View File

@ -1652,7 +1652,6 @@ public:
}
OffsetToCFI.emplace(Offset, FrameInstructions.size());
FrameInstructions.emplace_back(std::forward<MCCFIInstruction>(Inst));
return;
}
BinaryBasicBlock::iterator addCFIInstruction(BinaryBasicBlock *BB,

View File

@ -2614,7 +2614,6 @@ bool BinaryFunction::replayCFIInstrs(int32_t FromState, int32_t ToState,
// so we might as well fall-through here.
}
NewCFIs.push_back(CurState);
continue;
}
// Replay instructions while avoiding duplicates

View File

@ -339,8 +339,6 @@ void BinaryFunction::inferFallThroughCounts() {
}
}
}
return;
}
void BinaryFunction::clearProfile() {

View File

@ -86,7 +86,6 @@ void updateEdgeWeight<BinaryBasicBlock *>(EdgeWeightMap &EdgeWeights,
const BinaryBasicBlock *B,
double Weight) {
EdgeWeights[std::make_pair(A, B)] = Weight;
return;
}
template <>
@ -95,7 +94,6 @@ void updateEdgeWeight<Inverse<BinaryBasicBlock *>>(EdgeWeightMap &EdgeWeights,
const BinaryBasicBlock *B,
double Weight) {
EdgeWeights[std::make_pair(B, A)] = Weight;
return;
}
template <class NodeT>

View File

@ -250,7 +250,6 @@ void PHGreedyClusterAlgorithm::initQueue(std::vector<EdgeTy> &Queue,
void PHGreedyClusterAlgorithm::adjustQueue(std::vector<EdgeTy> &Queue,
const BinaryFunction &BF) {
// Nothing to do.
return;
}
bool PHGreedyClusterAlgorithm::areClustersCompatible(const ClusterTy &Front,

View File

@ -316,8 +316,6 @@ void DataAggregator::processFileBuildID(StringRef FileBuildID) {
} else {
outs() << "PERF2BOLT: matched build-id and file name\n";
}
return;
}
bool DataAggregator::checkPerfDataMagic(StringRef FileName) {