diff options
author | Dan Gohman <gohman@apple.com> | 2009-02-24 18:55:53 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-02-24 18:55:53 +0000 |
commit | 0bddac16a8c5798df1528ccf43da92a392a488be (patch) | |
tree | 1cb60f5065c8b0fb1874ee6798fe7d05dd835392 /llvm/lib/Analysis/LoopVR.cpp | |
parent | d4ecca135a78c3b4245264c10c191452603eff2d (diff) | |
download | bcm5719-llvm-0bddac16a8c5798df1528ccf43da92a392a488be.tar.gz bcm5719-llvm-0bddac16a8c5798df1528ccf43da92a392a488be.zip |
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.
llvm-svn: 65382
Diffstat (limited to 'llvm/lib/Analysis/LoopVR.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopVR.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LoopVR.cpp b/llvm/lib/Analysis/LoopVR.cpp index d0b77b89f0a..3a7ec7b9886 100644 --- a/llvm/lib/Analysis/LoopVR.cpp +++ b/llvm/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); |