This patch implements getSmallConstantTripMultiple(L) correctly for multiple exit loops. The previous implementation was both imprecise, and violated the specified behavior of the method. This was fine in practice, because it turns out the function was both dead in real code, and not tested for the multiple exit case.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM
llvm/lib/Analysis/ScalarEvolution.cpp | ||
---|---|---|
6985 | Could be written as return Res.getValueOr(1). Feel free to keep it keep as-is though. |
Could be written as return Res.getValueOr(1). Feel free to keep it keep as-is though.