/// Get the symbolic max backedge taken count for the loop.
const SCEV *getSymbolicMax(const Loop *L, ScalarEvolution *SE);
+ /// Get the symbolic max backedge taken count for the particular loop exit.
+ const SCEV *getSymbolicMax(const BasicBlock *ExitingBlock,
+ ScalarEvolution *SE) const;
+
/// Return true if the number of times this backedge is taken is either the
/// value returned by getConstantMax or zero.
bool isConstantMaxOrZero(ScalarEvolution *SE) const;
ExitCountKind Kind) {
switch (Kind) {
case Exact:
- case SymbolicMaximum:
return getBackedgeTakenInfo(L).getExact(ExitingBlock, this);
+ case SymbolicMaximum:
+ return getBackedgeTakenInfo(L).getSymbolicMax(ExitingBlock, this);
case ConstantMaximum:
return getBackedgeTakenInfo(L).getConstantMax(ExitingBlock, this);
};
return SE->getCouldNotCompute();
}
+const SCEV *ScalarEvolution::BackedgeTakenInfo::getSymbolicMax(
+ const BasicBlock *ExitingBlock, ScalarEvolution *SE) const {
+ // FIXME: Need to implement this. Return exact for now.
+ return getExact(ExitingBlock, SE);
+}
+
/// getConstantMax - Get the constant max backedge taken count for the loop.
const SCEV *
ScalarEvolution::BackedgeTakenInfo::getConstantMax(ScalarEvolution *SE) const {