diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-10-24 23:11:13 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-10-24 23:11:13 +0000 |
| commit | 84921b9860adbc7cd40df8beb9caf542ddaaa51b (patch) | |
| tree | 5baaa37b6d913d64895cd573ea2e5e36372f5c51 /llvm/lib/CodeGen/BranchFolding.cpp | |
| parent | f82ed2a28cefc1933052daa7cf81ca80bc405ed2 (diff) | |
| download | bcm5719-llvm-84921b9860adbc7cd40df8beb9caf542ddaaa51b.tar.gz bcm5719-llvm-84921b9860adbc7cd40df8beb9caf542ddaaa51b.zip | |
Refactor: Simplify boolean conditional return statements in lib/CodeGen.
Patch by Richard.
llvm-svn: 251213
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/BranchFolding.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index 5eb32f18b8a..6ee9a4b16fe 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/lib/CodeGen/BranchFolding.cpp @@ -620,11 +620,8 @@ ProfitableToMerge(MachineBasicBlock *MBB1, MachineBasicBlock *MBB2, // branch instruction, which is likely to be smaller than the 2 // instructions that would be deleted in the merge. MachineFunction *MF = MBB1->getParent(); - if (EffectiveTailLen >= 2 && MF->getFunction()->optForSize() && - (I1 == MBB1->begin() || I2 == MBB2->begin())) - return true; - - return false; + return EffectiveTailLen >= 2 && MF->getFunction()->optForSize() && + (I1 == MBB1->begin() || I2 == MBB2->begin()); } /// ComputeSameTails - Look through all the blocks in MergePotentials that have |

