[PATCH] D141850: [SCEV] Preserve divisibility and min/max information in applyLoopGuards

Alon Kom via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 31 23:45:10 PST 2023


alonkom marked an inline comment as done.
alonkom added inline comments.


================
Comment at: llvm/lib/Analysis/ScalarEvolution.cpp:15123
+    // DividesBy.
+    std::function<bool(const SCEV *, const SCEV *&)> HasDivisibiltyInfo =
+        [&](const SCEV *Expr, const SCEV *&DividesBy) {
----------------
mkazantsev wrote:
> alonkom wrote:
> > mkazantsev wrote:
> > > auto
> > can't use auto since there's a recursive call here
> `auto HasDivisibiltyInfo  = [&](const SCEV *Expr, const SCEV *&DividesBy) -> bool {...`
> ?
I'm still getting this build error:
use of ‘HasDivisibiltyInfo’ before deduction of ‘auto’


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141850/new/

https://reviews.llvm.org/D141850



More information about the llvm-commits mailing list