From: Matt Arsenault Date: Fri, 27 Aug 2021 13:18:26 +0000 (-0400) Subject: GlobalISel: Remove check for empty functions as these are invalid IR X-Git-Tag: upstream/15.0.7~32856 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1494298b512eea734845f2edf8f2cba70a0a1a7c;p=platform%2Fupstream%2Fllvm.git GlobalISel: Remove check for empty functions as these are invalid IR --- 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.