summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2021-08-27 09:18:26 -0400
committerMatt Arsenault <Matthew.Arsenault@amd.com>2021-08-27 09:27:06 -0400
commit1494298b512eea734845f2edf8f2cba70a0a1a7c (patch)
tree3e0b99536f891c27d9cc40fb8eb8870ddc575a9f
parent34ac7a7ac1a382d3170ab5728b288018b06f98d1 (diff)
downloadllvm-1494298b512eea734845f2edf8f2cba70a0a1a7c.tar.gz
GlobalISel: Remove check for empty functions as these are invalid IR
-rw-r--r--llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
index ecfbe801fca1..19393713e97a 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.