Refactor: Simplify boolean conditional return statements in lib/CodeGen.
[oota-llvm.git] / lib / CodeGen / BranchFolding.cpp
index 5eb32f18b8a7eb05bf9fc8fc579ba086398846f2..6ee9a4b16fea84d6817990f121d51d49ffe4b748 100644 (file)
@@ -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