summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-04-16 00:13:46 -0700
committerKazu Hirata <kazu@google.com>2023-04-16 00:13:46 -0700
commit972983539b28ccc941d4a10cad6d436278e55c6f (patch)
tree8507a7c120bbbefc96edb7f17cf5fa0088832f47
parentedcc59c70667e6b280e354dc7f9ae94a5ef0042f (diff)
downloadllvm-972983539b28ccc941d4a10cad6d436278e55c6f.tar.gz
[llvm] Apply fixes from readability-redundant-control-flow (NFC)
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp2
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp6
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFContext.cpp2
-rw-r--r--llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp3
-rw-r--r--llvm/lib/Target/AArch64/AArch64InstrInfo.cpp1
-rw-r--r--llvm/lib/Target/AMDGPU/SIInstrInfo.cpp1
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyDebugValueManager.cpp1
-rw-r--r--llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp1
8 files changed, 2 insertions, 15 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index cb2ecdb4103c..313010d44b4f 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 156b1c9ba619..5a295a7957da 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 eb57bdde064f..347a5c761442 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 e83e58193ed9..fff47258e131 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 0b572e375246..2bd0c1d782c2 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 cee9c28aa06e..25aecfddb7cb 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 9e97e44c4f54..607714eea3ef 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 8bcf69154c84..e00ff7cee01b 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) {