Skip to content

Commit 4048c64

Browse files
[llvm] Remove redundant control flow statements (NFC) (#115831)
Identified with readability-redundant-control-flow.
1 parent c784d32 commit 4048c64

23 files changed

+0
-34
lines changed

llvm/include/llvm/CodeGen/MachineFunction.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,6 @@ class LLVM_ABI MachineFunction {
468468
/// Callback before changing MCInstrDesc. This should not modify the MI
469469
/// directly.
470470
virtual void MF_HandleChangeDesc(MachineInstr &MI, const MCInstrDesc &TID) {
471-
return;
472471
}
473472
};
474473

llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3551,7 +3551,6 @@ void IRTranslator::translateDbgValueRecord(Value *V, bool HasArgList,
35513551
// pretty baked in right now.
35523552
MIRBuilder.buildDirectDbgValue(Reg, Variable, Expression);
35533553
}
3554-
return;
35553554
}
35563555

35573556
void IRTranslator::translateDbgDeclareRecord(Value *Address, bool HasArgList,

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,6 @@ void SelectionDAGBuilder::handleDebugDeclare(Value *Address,
12231223
<< " (could not emit func-arg dbg_value)\n");
12241224
}
12251225
}
1226-
return;
12271226
}
12281227

12291228
void SelectionDAGBuilder::visitDbgInfo(const Instruction &I) {

llvm/lib/IR/AsmWriter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4679,7 +4679,6 @@ void AssemblyWriter::printDbgMarker(const DbgMarker &Marker) {
46794679
Out << " DbgMarker -> { ";
46804680
printInstruction(*Marker.MarkedInstr);
46814681
Out << " }";
4682-
return;
46834682
}
46844683

46854684
void AssemblyWriter::printDbgRecord(const DbgRecord &DR) {

llvm/lib/IR/BasicBlock.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,8 +798,6 @@ void BasicBlock::spliceDebugInfoEmptyBlock(BasicBlock::iterator Dest,
798798
return;
799799

800800
createMarker(Dest)->absorbDebugValues(*First->DebugMarker, InsertAtHead);
801-
802-
return;
803801
}
804802

805803
void BasicBlock::spliceDebugInfo(BasicBlock::iterator Dest, BasicBlock *Src,

llvm/lib/Object/WasmObjectFile.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,6 @@ Error WasmObjectFile::parseTypeSection(ReadContext &Ctx) {
12421242
while (ParamCount--) {
12431243
uint32_t ParamType = readUint8(Ctx);
12441244
Sig.Params.push_back(parseValType(Ctx, ParamType));
1245-
continue;
12461245
}
12471246
uint32_t ReturnCount = readVaruint32(Ctx);
12481247
while (ReturnCount--) {

llvm/lib/ObjectYAML/DWARFEmitter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,6 @@ void emitDebugNamesHeader(raw_ostream &OS, bool IsLittleEndian,
745745
writeInteger(AbbrevSize, OS, IsLittleEndian);
746746
writeInteger(uint32_t(AugmentationString.size()), OS, IsLittleEndian);
747747
OS.write(AugmentationString.data(), AugmentationString.size());
748-
return;
749748
}
750749

751750
/// Emits the abbreviations for a DebugNames section.

llvm/lib/Passes/StandardInstrumentations.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2547,7 +2547,6 @@ void DroppedVariableStats::runBeforePass(StringRef PassID, Any IR) {
25472547
return this->runOnModule(M, true);
25482548
if (auto *F = unwrapIR<Function>(IR))
25492549
return this->runOnFunction(F, true);
2550-
return;
25512550
}
25522551

25532552
void DroppedVariableStats::runOnFunction(const Function *F, bool Before) {
@@ -2661,7 +2660,6 @@ void DroppedVariableStats::runAfterPass(StringRef PassID, Any IR,
26612660

26622661
DebugVariablesStack.pop_back();
26632662
InlinedAts.pop_back();
2664-
return;
26652663
}
26662664

26672665
bool DroppedVariableStats::isScopeChildOfOrEqualTo(DIScope *Scope,

llvm/lib/Support/APFloat.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3947,7 +3947,6 @@ void IEEEFloat::initFromFloat8E8M0FNUAPInt(const APInt &api) {
39473947
// Handle fcNormal...
39483948
category = fcNormal;
39493949
exponent = myexponent - 127; // 127 is bias
3950-
return;
39513950
}
39523951
template <const fltSemantics &S>
39533952
void IEEEFloat::initFromIEEEAPInt(const APInt &api) {

llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,7 +1533,6 @@ void AArch64DAGToDAGISel::SelectPtrauthAuth(SDNode *N) {
15331533

15341534
SDNode *AUT = CurDAG->getMachineNode(AArch64::AUT, DL, MVT::i64, Ops);
15351535
ReplaceNode(N, AUT);
1536-
return;
15371536
}
15381537

15391538
void AArch64DAGToDAGISel::SelectPtrauthResign(SDNode *N) {
@@ -1567,7 +1566,6 @@ void AArch64DAGToDAGISel::SelectPtrauthResign(SDNode *N) {
15671566

15681567
SDNode *AUTPAC = CurDAG->getMachineNode(AArch64::AUTPAC, DL, MVT::i64, Ops);
15691568
ReplaceNode(N, AUTPAC);
1570-
return;
15711569
}
15721570

15731571
bool AArch64DAGToDAGISel::tryIndexedLoad(SDNode *N) {

0 commit comments

Comments
 (0)