aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-10-24 23:34:26 +0000
committerDan Gohman <gohman@apple.com>2009-10-24 23:34:26 +0000
commit32663b719b4996b3a735f22bba80d771d50f96e7 (patch)
treeed07e8a4db4e68ced3974534987a6a369ac0a2a2 /lib
parenta7f1d72d09f174da56217c0776dcab74998e50b9 (diff)
downloadexternal_llvm-32663b719b4996b3a735f22bba80d771d50f96e7.tar.gz
external_llvm-32663b719b4996b3a735f22bba80d771d50f96e7.tar.bz2
external_llvm-32663b719b4996b3a735f22bba80d771d50f96e7.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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85019 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SimpleRegisterCoalescing.cpp4
-rw-r--r--lib/Transforms/Scalar/LoopRotation.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp
index 827d6dc5f4..0672b56fd4 100644
--- a/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/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/lib/Transforms/Scalar/LoopRotation.cpp b/lib/Transforms/Scalar/LoopRotation.cpp
index c8cbad479a..6e0f67b672 100644
--- a/lib/Transforms/Scalar/LoopRotation.cpp
+++ b/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());