summaryrefslogtreecommitdiff
path: root/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-11-16 17:56:13 +0000
committerBob Wilson <bob.wilson@apple.com>2009-11-16 17:56:13 +0000
commit3cbc3120873242d93e469b4635c0bbd09fdb6438 (patch)
tree041ffe9659aeb0629ed3489ba060db0035f82549 /lib/CodeGen/BranchFolding.cpp
parentc0517504e57e945bccd68f5e2e4edc350eda1989 (diff)
downloadllvm-3cbc3120873242d93e469b4635c0bbd09fdb6438.tar.gz
llvm-3cbc3120873242d93e469b4635c0bbd09fdb6438.tar.bz2
llvm-3cbc3120873242d93e469b4635c0bbd09fdb6438.tar.xz
Clean up whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.cpp')
-rw-r--r--lib/CodeGen/BranchFolding.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp
index 6606316735..6db8e1a0cd 100644
--- a/lib/CodeGen/BranchFolding.cpp
+++ b/lib/CodeGen/BranchFolding.cpp
@@ -52,7 +52,7 @@ TailMergeThreshold("tail-merge-threshold",
// Heuristic for tail merging (and, inversely, tail duplication).
// TODO: This should be replaced with a target query.
static cl::opt<unsigned>
-TailMergeSize("tail-merge-size",
+TailMergeSize("tail-merge-size",
cl::desc("Min number of instructions to consider tail merging"),
cl::init(3), cl::Hidden);
@@ -522,7 +522,7 @@ static bool ProfitableToMerge(MachineBasicBlock *MBB1,
// count that as an additional common instruction for the following
// heuristics.
unsigned EffectiveTailLen = CommonTailLen;
- if (SuccBB && MBB1 != PredBB && MBB2 != PredBB &&
+ if (SuccBB && MBB1 != PredBB && MBB2 != PredBB &&
!MBB1->back().getDesc().isBarrier() &&
!MBB2->back().getDesc().isBarrier())
++EffectiveTailLen;
@@ -970,7 +970,7 @@ bool BranchFolder::CanFallThrough(MachineBasicBlock *CurBB,
if (BranchUnAnalyzable)
return CurBB->empty() || !CurBB->back().getDesc().isBarrier() ||
CurBB->back().getDesc().isPredicable();
-
+
// If there is no branch, control always falls through.
if (TBB == 0) return true;
@@ -1043,7 +1043,7 @@ bool BranchFolder::TailDuplicate(MachineBasicBlock *TailBB,
// get into an infinite loop between duplicating and merging. When optimizing
// for size, duplicate only one, because one branch instruction can be
// eliminated to compensate for the duplication.
- unsigned MaxDuplicateCount =
+ unsigned MaxDuplicateCount =
MF.getFunction()->hasFnAttr(Attribute::OptimizeForSize) ?
1 : (TailMergeSize - 1);
@@ -1201,7 +1201,7 @@ ReoptimizeBlock:
MadeChange = true;
return MadeChange;
}
-
+
// If the previous branch *only* branches to *this* block (conditional or
// not) remove the branch.
if (PriorTBB == MBB && PriorFBB == 0) {
@@ -1401,7 +1401,7 @@ ReoptimizeBlock:
// Now we know that there was no fall-through into this block, check to
// see if it has a fall-through into its successor.
- bool CurFallsThru = CanFallThrough(MBB, CurUnAnalyzable, CurTBB, CurFBB,
+ bool CurFallsThru = CanFallThrough(MBB, CurUnAnalyzable, CurTBB, CurFBB,
CurCond);
bool PrevFallsThru = CanFallThrough(&PrevBB, PriorUnAnalyzable,
PriorTBB, PriorFBB, PriorCond);