[llvm] 1494298 - GlobalISel: Remove check for empty functions as these are invalid IR
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 27 06:27:13 PDT 2021
Author: Matt Arsenault
Date: 2021-08-27T09:27:06-04:00
New Revision: 1494298b512eea734845f2edf8f2cba70a0a1a7c
URL: https://github.com/llvm/llvm-project/commit/1494298b512eea734845f2edf8f2cba70a0a1a7c
DIFF: https://github.com/llvm/llvm-project/commit/1494298b512eea734845f2edf8f2cba70a0a1a7c.diff
LOG: GlobalISel: Remove check for empty functions as these are invalid IR
Added:
Modified:
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
index ecfbe801fca1e..19393713e97a9 100644
--- a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
@@ -3110,8 +3110,6 @@ static bool checkForMustTailInVarArgFn(bool IsVarArg, const BasicBlock &BB) {
bool IRTranslator::runOnMachineFunction(MachineFunction &CurMF) {
MF = &CurMF;
const Function &F = MF->getFunction();
- if (F.empty())
- return false;
GISelCSEAnalysisWrapper &Wrapper =
getAnalysis<GISelCSEAnalysisWrapperPass>().getCSEWrapper();
// Set the CSEConfig and run the analysis.
More information about the llvm-commits
mailing list