[bolt] Remove redundaunt control-flow statements (NFC)
Identified with readability-redundant-control-flow.
This commit is contained in:
parent
60db8d9b4e
commit
b498a8991e
|
@ -1652,7 +1652,6 @@ public:
|
|||
}
|
||||
OffsetToCFI.emplace(Offset, FrameInstructions.size());
|
||||
FrameInstructions.emplace_back(std::forward<MCCFIInstruction>(Inst));
|
||||
return;
|
||||
}
|
||||
|
||||
BinaryBasicBlock::iterator addCFIInstruction(BinaryBasicBlock *BB,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -339,8 +339,6 @@ void BinaryFunction::inferFallThroughCounts() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
void BinaryFunction::clearProfile() {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue