aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/LoopVR.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-02-24 18:55:53 +0000
committerDan Gohman <gohman@apple.com>2009-02-24 18:55:53 +0000
commit46bdfb0e6bb9de86b19562fc52fddefd7014cf73 (patch)
treea8f92be55af923205fbf9436d25b7544215c44bb /lib/Analysis/LoopVR.cpp
parent57f0db833dc30404f1f5d28b23df326e520698ec (diff)
Rename ScalarEvolution's getIterationCount to getBackedgeTakenCount,
to more accurately describe what it does. Expand its doxygen comment to describe what the backedge-taken count is and how it differs from the actual iteration count of the loop. Adjust names and comments in associated code accordingly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65382 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopVR.cpp')
-rw-r--r--lib/Analysis/LoopVR.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/LoopVR.cpp b/lib/Analysis/LoopVR.cpp
index d0b77b89f0..3a7ec7b988 100644
--- a/lib/Analysis/LoopVR.cpp
+++ b/lib/Analysis/LoopVR.cpp
@@ -27,7 +27,7 @@ static RegisterPass<LoopVR> X("loopvr", "Loop Value Ranges", true, true);
/// getRange - determine the range for a particular SCEV within a given Loop
ConstantRange LoopVR::getRange(SCEVHandle S, Loop *L, ScalarEvolution &SE) {
- SCEVHandle T = SE.getIterationCount(L);
+ SCEVHandle T = SE.getBackedgeTakenCount(L);
if (isa<SCEVCouldNotCompute>(T))
return ConstantRange(cast<IntegerType>(S->getType())->getBitWidth(), true);