From 46bdfb0e6bb9de86b19562fc52fddefd7014cf73 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 24 Feb 2009 18:55:53 +0000 Subject: 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 --- lib/Analysis/LoopVR.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Analysis/LoopVR.cpp') 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 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(T)) return ConstantRange(cast(S->getType())->getBitWidth(), true); -- cgit v1.2.3