[PATCH] D105921: [SCEV] Handle zero stride correctly in howManyLessThans
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 13 12:02:19 PDT 2021
efriedma added inline comments.
================
Comment at: llvm/lib/Analysis/ScalarEvolution.cpp:11675
+ auto *StartIfZero = getMinusSCEV(IV->getStart(), Stride);
+ return isLoopEntryGuardedByCond(L, Cond, StartIfZero, RHS);
+ };
----------------
We make exactly the same isLoopEntryGuardedByCond() call later; can we avoid calling it twice?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105921/new/
https://reviews.llvm.org/D105921
More information about the llvm-commits
mailing list