diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-10-07 20:31:05 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-10-07 20:31:05 +0000 |
commit | 2f6031c6436baee3542660a861c4f1ccc548e720 (patch) | |
tree | 08adc23fd0b00ae944b27f59a5edd4b397fb9128 /llvm/lib/CodeGen/BranchFolding.cpp | |
parent | a4fe992756d9c5c9175a3aaff45569fb84b73baa (diff) | |
download | bcm5719-llvm-2f6031c6436baee3542660a861c4f1ccc548e720.tar.gz bcm5719-llvm-2f6031c6436baee3542660a861c4f1ccc548e720.zip |
Fix indentation. Remove 'else' after return. No functional change.
llvm-svn: 165381
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r-- | llvm/lib/CodeGen/BranchFolding.cpp | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index 96af94fa721..aa2225294c7 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/lib/CodeGen/BranchFolding.cpp @@ -357,9 +357,8 @@ static unsigned ComputeCommonTailLength(MachineBasicBlock *MBB1, if (I1 == MBB1->begin() && I2 != MBB2->begin()) { --I2; while (I2->isDebugValue()) { - if (I2 == MBB2->begin()) { + if (I2 == MBB2->begin()) return TailLen; - } --I2; } ++I2; @@ -482,21 +481,19 @@ bool BranchFolder::MergePotentialsElt::operator<(const MergePotentialsElt &o) const { if (getHash() < o.getHash()) return true; - else if (getHash() > o.getHash()) + if (getHash() > o.getHash()) return false; - else if (getBlock()->getNumber() < o.getBlock()->getNumber()) + if (getBlock()->getNumber() < o.getBlock()->getNumber()) return true; - else if (getBlock()->getNumber() > o.getBlock()->getNumber()) + if (getBlock()->getNumber() > o.getBlock()->getNumber()) return false; - else { - // _GLIBCXX_DEBUG checks strict weak ordering, which involves comparing - // an object with itself. + // _GLIBCXX_DEBUG checks strict weak ordering, which involves comparing + // an object with itself. #ifndef _GLIBCXX_DEBUG - llvm_unreachable("Predecessor appears twice"); + llvm_unreachable("Predecessor appears twice"); #else - return false; + return false; #endif - } } /// CountTerminators - Count the number of terminators in the given |