mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user