[PATCH] D108651: [SCEV] Use no-self-wrap flags infered from exit structure to compute trip count
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 24 12:58:19 PDT 2021
efriedma added inline comments.
================
Comment at: llvm/lib/Analysis/ScalarEvolution.cpp:11626
+
+ setNoWrapFlags(const_cast<SCEVAddRecExpr *>(AR), Flags);
+ }
----------------
Can we move this logic to computeExitLimitFromICmp, or maybe even createAddRecFromPHI? It's basically independent of the predicate.
================
Comment at: llvm/lib/Analysis/ScalarEvolution.cpp:11636
+ getZeroExtendExpr(Step, Ty, 0), L, AR->getNoWrapFlags());
+ IV = dyn_cast<SCEVAddRecExpr>(S);
+ }
----------------
cast<SCEVAddRecExpr>?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108651/new/
https://reviews.llvm.org/D108651
More information about the llvm-commits
mailing list