diff options
| author | Dan Gohman <gohman@apple.com> | 2009-10-24 23:34:26 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-10-24 23:34:26 +0000 |
| commit | 8f4078ba391a091b7eb119db1865848c5c95a7b2 (patch) | |
| tree | e4ff863e668914aad9fd4f0c6c50ead7e2b9135b | |
| parent | e155f8646c26401d2b723babc4e2358f11c18a1f (diff) | |
| download | bcm5719-llvm-8f4078ba391a091b7eb119db1865848c5c95a7b2.tar.gz bcm5719-llvm-8f4078ba391a091b7eb119db1865848c5c95a7b2.zip | |
Rename isLoopExit to isLoopExiting, for consistency with the wording
used elsewhere - an exit block is a block outside the loop branched to
from within the loop. An exiting block is a block inside the loop that
branches out.
llvm-svn: 85019
| -rw-r--r-- | llvm/include/llvm/Analysis/LoopInfo.h | 6 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopRotation.cpp | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/llvm/include/llvm/Analysis/LoopInfo.h b/llvm/include/llvm/Analysis/LoopInfo.h index 763111063d0..bc87adbfc79 100644 --- a/llvm/include/llvm/Analysis/LoopInfo.h +++ b/llvm/include/llvm/Analysis/LoopInfo.h @@ -114,10 +114,10 @@ public: block_iterator block_begin() const { return Blocks.begin(); } block_iterator block_end() const { return Blocks.end(); } - /// isLoopExit - True if terminator in the block can branch to another block + /// isLoopExiting - True if terminator in the block can branch to another block /// that is outside of the current loop. /// - bool isLoopExit(const BlockT *BB) const { + bool isLoopExiting(const BlockT *BB) const { typedef GraphTraits<BlockT*> BlockTraits; for (typename BlockTraits::ChildIteratorType SI = BlockTraits::child_begin(const_cast<BlockT*>(BB)), @@ -465,7 +465,7 @@ public: WriteAsOperand(OS, BB, false); if (BB == getHeader()) OS << "<header>"; if (BB == getLoopLatch()) OS << "<latch>"; - if (isLoopExit(BB)) OS << "<exit>"; + if (isLoopExiting(BB)) OS << "<exiting>"; } OS << "\n"; diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp index 827d6dc5f40..0672b56fd43 100644 --- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp @@ -2565,7 +2565,7 @@ void SimpleRegisterCoalescing::CalculateSpillWeights() { LiveIndex MBBEnd = li_->getMBBEndIdx(MBB); MachineLoop* loop = loopInfo->getLoopFor(MBB); unsigned loopDepth = loop ? loop->getLoopDepth() : 0; - bool isExit = loop ? loop->isLoopExit(MBB) : false; + bool isExiting = loop ? loop->isLoopExiting(MBB) : false; for (MachineBasicBlock::const_iterator mii = MBB->begin(), mie = MBB->end(); mii != mie; ++mii) { @@ -2599,7 +2599,7 @@ void SimpleRegisterCoalescing::CalculateSpillWeights() { LiveInterval &RegInt = li_->getInterval(Reg); float Weight = li_->getSpillWeight(HasDef, HasUse, loopDepth); - if (HasDef && isExit) { + if (HasDef && isExiting) { // Looks like this is a loop count variable update. LiveIndex DefIdx = li_->getDefIndex(li_->getInstructionIndex(MI)); diff --git a/llvm/lib/Transforms/Scalar/LoopRotation.cpp b/llvm/lib/Transforms/Scalar/LoopRotation.cpp index c8cbad479a3..6e0f67b6729 100644 --- a/llvm/lib/Transforms/Scalar/LoopRotation.cpp +++ b/llvm/lib/Transforms/Scalar/LoopRotation.cpp @@ -118,7 +118,7 @@ bool LoopRotate::rotateLoop(Loop *Lp, LPPassManager &LPM) { // If the loop header is not one of the loop exiting blocks then // either this loop is already rotated or it is not // suitable for loop rotation transformations. - if (!L->isLoopExit(OrigHeader)) + if (!L->isLoopExiting(OrigHeader)) return false; BranchInst *BI = dyn_cast<BranchInst>(OrigHeader->getTerminator()); |

