diff options
author | Jessica Paquette <jpaquette@apple.com> | 2023-02-03 16:19:04 -0800 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2023-02-03 16:41:02 -0800 |
commit | 443c5b9fd505f5fe2df92ee27bf1d4d9e0dc4cb9 (patch) | |
tree | a071d7e9ca495dae295ac25ee97a09a0b1703bc8 /llvm | |
parent | 7bb9d70bbb984b78f48e82ff0fb862abd45bf6ee (diff) | |
download | llvm-443c5b9fd505f5fe2df92ee27bf1d4d9e0dc4cb9.zip llvm-443c5b9fd505f5fe2df92ee27bf1d4d9e0dc4cb9.tar.gz llvm-443c5b9fd505f5fe2df92ee27bf1d4d9e0dc4cb9.tar.bz2 |
[NFC] Remove redundant check for MBB being empty in outliner
If the size is < 2, then we just break anyway.
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/CodeGen/MachineOutliner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineOutliner.cpp b/llvm/lib/CodeGen/MachineOutliner.cpp index aac60d6..7282a4c 100644 --- a/llvm/lib/CodeGen/MachineOutliner.cpp +++ b/llvm/lib/CodeGen/MachineOutliner.cpp @@ -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 |