From 1494298b512eea734845f2edf8f2cba70a0a1a7c Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Fri, 27 Aug 2021 09:18:26 -0400 Subject: [PATCH] GlobalISel: Remove check for empty functions as these are invalid IR --- llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp index ecfbe80..1939371 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().getCSEWrapper(); // Set the CSEConfig and run the analysis. -- 2.7.4