[NFC] Remove redundant check for MBB being empty in outliner
authorJessica Paquette <jpaquette@apple.com>
Sat, 4 Feb 2023 00:19:04 +0000 (16:19 -0800)
committerJessica Paquette <jpaquette@apple.com>
Sat, 4 Feb 2023 00:41:02 +0000 (16:41 -0800)
If the size is < 2, then we just break anyway.

llvm/lib/CodeGen/MachineOutliner.cpp

index aac60d6..7282a4c 100644 (file)
@@ -956,7 +956,7 @@ void MachineOutliner::populateMapper(InstructionMapper &Mapper, Module &M,
       // contain something worth outlining.
       // FIXME: This should be based off of the maximum size in B of an outlined
       // call versus the size in B of the MBB.
-      if (MBB.empty() || MBB.size() < 2)
+      if (MBB.size() < 2)
         continue;
 
       // Check if MBB could be the target of an indirect branch. If it is, then