[PATCH] D118090: [ScalarEvolution] Handle <= and >= in non infinite loops
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 26 04:42:18 PST 2022
lebedev.ri added inline comments.
================
Comment at: llvm/lib/Analysis/ScalarEvolution.cpp:10090
case ICmpInst::ICMP_SLE:
- if (!getSignedRangeMax(RHS).isMaxSignedValue()) {
+ if (!getSignedRangeMax(RHS).isMaxSignedValue() || ControllingFiniteLoop) {
RHS = getAddExpr(getConstant(RHS->getType(), 1, true), RHS,
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118090/new/
https://reviews.llvm.org/D118090
More information about the llvm-commits
mailing list