Fix indentation. Remove 'else' after return. No functional change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165381 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper
2012-10-07 20:31:05 +00:00
parent 59ccfb004c
commit 14ce91cc27

View File

@@ -357,9 +357,8 @@ static unsigned ComputeCommonTailLength(MachineBasicBlock *MBB1,
if (I1 == MBB1->begin() && I2 != MBB2->begin()) { if (I1 == MBB1->begin() && I2 != MBB2->begin()) {
--I2; --I2;
while (I2->isDebugValue()) { while (I2->isDebugValue()) {
if (I2 == MBB2->begin()) { if (I2 == MBB2->begin())
return TailLen; return TailLen;
}
--I2; --I2;
} }
++I2; ++I2;
@@ -482,21 +481,19 @@ bool
BranchFolder::MergePotentialsElt::operator<(const MergePotentialsElt &o) const { BranchFolder::MergePotentialsElt::operator<(const MergePotentialsElt &o) const {
if (getHash() < o.getHash()) if (getHash() < o.getHash())
return true; return true;
else if (getHash() > o.getHash()) if (getHash() > o.getHash())
return false; return false;
else if (getBlock()->getNumber() < o.getBlock()->getNumber()) if (getBlock()->getNumber() < o.getBlock()->getNumber())
return true; return true;
else if (getBlock()->getNumber() > o.getBlock()->getNumber()) if (getBlock()->getNumber() > o.getBlock()->getNumber())
return false; return false;
else { // _GLIBCXX_DEBUG checks strict weak ordering, which involves comparing
// _GLIBCXX_DEBUG checks strict weak ordering, which involves comparing // an object with itself.
// an object with itself.
#ifndef _GLIBCXX_DEBUG #ifndef _GLIBCXX_DEBUG
llvm_unreachable("Predecessor appears twice"); llvm_unreachable("Predecessor appears twice");
#else #else
return false; return false;
#endif #endif
}
} }
/// CountTerminators - Count the number of terminators in the given /// CountTerminators - Count the number of terminators in the given