[llvm] d85993d - [llvm] Remove redundant control flow statements (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 19 08:07:36 PDT 2023
Author: Kazu Hirata
Date: 2023-08-19T08:07:30-07:00
New Revision: d85993d28fa0961b003771fbaa1d46dac11b6608
URL: https://github.com/llvm/llvm-project/commit/d85993d28fa0961b003771fbaa1d46dac11b6608
DIFF: https://github.com/llvm/llvm-project/commit/d85993d28fa0961b003771fbaa1d46dac11b6608.diff
LOG: [llvm] Remove redundant control flow statements (NFC)
Added:
Modified:
llvm/lib/CodeGen/TargetInstrInfo.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AMDGPU/AMDGPURemoveIncompatibleFunctions.cpp
llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
llvm/lib/Transforms/Scalar/NewGVN.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/TargetInstrInfo.cpp b/llvm/lib/CodeGen/TargetInstrInfo.cpp
index f060b7d45e820a..6779aa47bb67de 100644
--- a/llvm/lib/CodeGen/TargetInstrInfo.cpp
+++ b/llvm/lib/CodeGen/TargetInstrInfo.cpp
@@ -749,7 +749,6 @@ void TargetInstrInfo::lowerCopy(MachineInstr *MI,
if (MI->getNumOperands() > 2)
transferImplicitOperands(MI, TRI);
MI->eraseFromParent();
- return;
}
bool TargetInstrInfo::hasReassociableOperands(
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 1912bde26d3d69..64fc4a118f92d0 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -23531,7 +23531,6 @@ static void CustomNonLegalBITCASTResults(SDNode *N,
SDValue IdxZero = DAG.getVectorIdxConstant(0, DL);
Results.push_back(
DAG.getNode(ISD::EXTRACT_SUBVECTOR, DL, VT, CastVal, IdxZero));
- return;
}
void AArch64TargetLowering::ReplaceBITCASTResults(
diff --git a/llvm/lib/Target/AMDGPU/AMDGPURemoveIncompatibleFunctions.cpp b/llvm/lib/Target/AMDGPU/AMDGPURemoveIncompatibleFunctions.cpp
index 9ae3ce53353e5f..c8ea309e3cb924 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPURemoveIncompatibleFunctions.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPURemoveIncompatibleFunctions.cpp
@@ -128,7 +128,6 @@ void reportFunctionRemoved(Function &F, unsigned Feature) {
<< getFeatureName(Feature)
<< " is not supported on the current target";
});
- return;
}
} // end anonymous namespace
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
index a089d61616e1a0..37eb38363838f3 100644
--- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -632,7 +632,6 @@ void PPCAsmPrinter::EmitAIXTlsCallHelper(const MachineInstr *MI) {
const MCExpr *TlsRef =
MCSymbolRefExpr::create(TlsCall, MCSymbolRefExpr::VK_None, OutContext);
EmitToStreamer(*OutStreamer, MCInstBuilder(PPC::BLA).addExpr(TlsRef));
- return;
}
/// EmitTlsCall -- Given a GETtls[ld]ADDR[32] instruction, print a
diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp
index f1c107deb4594d..990660fee52611 100644
--- a/llvm/lib/Transforms/Scalar/NewGVN.cpp
+++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp
@@ -2650,7 +2650,6 @@ bool NewGVN::OpIsSafeForPHIOfOps(Value *V, const BasicBlock *PHIBlock,
// Add potential clobber of the original access.
MemAccessWorkList.push_back(MSSAWalker->getClobberingMemoryAccess(
cast<MemoryUseOrDef>(MemAccess)));
- continue;
}
}
More information about the llvm-commits
mailing list