[llvm] [DependenceAnalysis] Fix incorrect analysis of wrapping AddRec expressions (PR #154982)
Ryotaro Kasuga via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 22 12:10:59 PDT 2025
================
@@ -6439,8 +6439,129 @@ void ScalarEvolution::setNoWrapFlags(SCEVAddRecExpr *AddRec,
}
}
-ConstantRange ScalarEvolution::
-getRangeForUnknownRecurrence(const SCEVUnknown *U) {
+std::optional<bool>
+ScalarEvolution::mayAddRecWrap(const SCEVAddRecExpr *AddRec) {
----------------
kasuga-fj wrote:
This function doesn't make sense. At the very least ,please read the semantics of `NoWrapFlags` in the ScalarEvolution.h
https://github.com/llvm/llvm-project/pull/154982
More information about the llvm-commits
mailing list