mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
Comment and clarifying assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139036 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
271439053d
commit
252ef7a61a
@ -319,8 +319,9 @@ namespace llvm {
|
|||||||
const SCEV *getExact(ScalarEvolution *SE) const;
|
const SCEV *getExact(ScalarEvolution *SE) const;
|
||||||
|
|
||||||
/// getExact - Return the number of times this loop exit may fall through
|
/// getExact - Return the number of times this loop exit may fall through
|
||||||
/// to the back edge. The loop is guaranteed not to exit via this block
|
/// to the back edge, or SCEVCouldNotCompute. The loop is guaranteed not
|
||||||
/// before this number of iterations, but may exit via another block.
|
/// to exit via this block before this number of iterations, but may exit
|
||||||
|
/// via another block.
|
||||||
const SCEV *getExact(BasicBlock *ExitingBlock, ScalarEvolution *SE) const;
|
const SCEV *getExact(BasicBlock *ExitingBlock, ScalarEvolution *SE) const;
|
||||||
|
|
||||||
/// getMax - Get the max backedge taken count for the loop.
|
/// getMax - Get the max backedge taken count for the loop.
|
||||||
|
@ -4090,6 +4090,7 @@ ScalarEvolution::BackedgeTakenInfo::getExact(ScalarEvolution *SE) const {
|
|||||||
else
|
else
|
||||||
BECount = SE->getUMinFromMismatchedTypes(BECount, ENT->ExactNotTaken);
|
BECount = SE->getUMinFromMismatchedTypes(BECount, ENT->ExactNotTaken);
|
||||||
}
|
}
|
||||||
|
assert(BECount && "Invalid not taken count for loop exit");
|
||||||
return BECount;
|
return BECount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user