[llvm] 9729835 - [llvm] Apply fixes from readability-redundant-control-flow (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 16 00:13:59 PDT 2023
Author: Kazu Hirata
Date: 2023-04-16T00:13:46-07:00
New Revision: 972983539b28ccc941d4a10cad6d436278e55c6f
URL: https://github.com/llvm/llvm-project/commit/972983539b28ccc941d4a10cad6d436278e55c6f
DIFF: https://github.com/llvm/llvm-project/commit/972983539b28ccc941d4a10cad6d436278e55c6f.diff
LOG: [llvm] Apply fixes from readability-redundant-control-flow (NFC)
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/lib/Target/WebAssembly/WebAssemblyDebugValueManager.cpp
llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index cb2ecdb4103c9..313010d44b4fa 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -11607,7 +11607,6 @@ void SelectionDAGBuilder::visitVectorDeinterleave(const CallInst &I) {
SDValue Res = DAG.getNode(ISD::VECTOR_DEINTERLEAVE, DL,
DAG.getVTList(OutVT, OutVT), Lo, Hi);
setValue(&I, Res);
- return;
}
void SelectionDAGBuilder::visitVectorInterleave(const CallInst &I) {
@@ -11633,7 +11632,6 @@ void SelectionDAGBuilder::visitVectorInterleave(const CallInst &I) {
Res = DAG.getNode(ISD::CONCAT_VECTORS, DL, OutVT, Res.getValue(0),
Res.getValue(1));
setValue(&I, Res);
- return;
}
void SelectionDAGBuilder::visitFreeze(const FreezeInst &I) {
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 156b1c9ba6199..5a295a7957dae 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -5318,10 +5318,8 @@ void TargetLowering::LowerAsmOperandForConstraint(SDValue Op,
}
}
-void TargetLowering::CollectTargetIntrinsicOperands(const CallInst &I,
- SmallVectorImpl<SDValue> &Ops,
- SelectionDAG &DAG) const {
- return;
+void TargetLowering::CollectTargetIntrinsicOperands(
+ const CallInst &I, SmallVectorImpl<SDValue> &Ops, SelectionDAG &DAG) const {
}
std::pair<unsigned, const TargetRegisterClass *>
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
index eb57bdde064f8..347a5c7614426 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
@@ -844,8 +844,6 @@ void fixupIndexV4(const DWARFObject &DObj, DWARFContext &C,
Twine::utohexstr(CUOff.getOffset())),
errs());
}
-
- return;
}
void fixupIndexV5(const DWARFObject &DObj, DWARFContext &C,
diff --git a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
index e83e58193ed9c..fff47258e1316 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
@@ -1812,7 +1812,6 @@ void AArch64DAGToDAGISel::SelectCVTIntrinsic(SDNode *N, unsigned NumVecs,
AArch64::zsub0 + i, DL, VT, SuperReg));
CurDAG->RemoveDeadNode(N);
- return;
}
void AArch64DAGToDAGISel::SelectDestructiveMultiIntrinsic(SDNode *N,
@@ -1846,7 +1845,6 @@ void AArch64DAGToDAGISel::SelectDestructiveMultiIntrinsic(SDNode *N,
AArch64::zsub0 + i, DL, VT, SuperReg));
CurDAG->RemoveDeadNode(N);
- return;
}
void AArch64DAGToDAGISel::SelectPredicatedLoad(SDNode *N, unsigned NumVecs,
@@ -1908,7 +1906,6 @@ void AArch64DAGToDAGISel::SelectClamp(SDNode *N, unsigned NumVecs,
AArch64::zsub0 + i, DL, VT, SuperReg));
CurDAG->RemoveDeadNode(N);
- return;
}
bool SelectSMETile(unsigned &BaseReg, unsigned TileNum) {
diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
index 0b572e375246f..2bd0c1d782c2f 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
@@ -7700,7 +7700,6 @@ AArch64InstrInfo::getOutlinableRanges(MachineBasicBlock &MBB,
LRAvailableEverywhere &= LRU.available(AArch64::LR);
RangeBegin = MI.getIterator();
++RangeLen;
- continue;
}
// Above loop misses the last (or only) range. If we are still safe, then
// let's save the range.
diff --git a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
index cee9c28aa06e2..25aecfddb7cb5 100644
--- a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
@@ -6581,7 +6581,6 @@ void SIInstrInfo::moveToVALUImpl(SIInstrWorklist &Worklist,
legalizeOperands(*NewInstr, MDT);
if (NewDstReg)
addUsersToMoveToVALUWorklist(NewDstReg, MRI, Worklist);
- return;
}
// Add/sub require special handling to deal with carry outs.
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyDebugValueManager.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyDebugValueManager.cpp
index 9e97e44c4f542..607714eea3ef3 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyDebugValueManager.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyDebugValueManager.cpp
@@ -334,7 +334,6 @@ void WebAssemblyDebugValueManager::sink(MachineInstr *Insert) {
DV->setDebugValueUndef();
DbgValues.swap(NewDbgValues);
- return;
}
// Clone 'Def', and also clone its eligible DBG_VALUEs to the place before
diff --git a/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp b/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
index 8bcf69154c843..e00ff7cee01b3 100644
--- a/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
@@ -631,7 +631,6 @@ void Materialize(void *Ctx, LLVMOrcMaterializationResponsibilityRef MR) {
LLVMOrcMaterializationResponsibilityNotifyEmitted(MR);
LLVMOrcDisposeMaterializationResponsibility(MR);
- return;
}
TEST_F(OrcCAPITestBase, MaterializationResponsibility) {
More information about the llvm-commits
mailing list