[llvm] a8b177a - [LAA] Remove unneeded hasNoOverflow call (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 17 12:14:33 PST 2025
Author: Florian Hahn
Date: 2025-02-17T21:14:01+01:00
New Revision: a8b177aa6048e3dc278f63f4bc79e2c199ecd722
URL: https://github.com/llvm/llvm-project/commit/a8b177aa6048e3dc278f63f4bc79e2c199ecd722
DIFF: https://github.com/llvm/llvm-project/commit/a8b177aa6048e3dc278f63f4bc79e2c199ecd722.diff
LOG: [LAA] Remove unneeded hasNoOverflow call (NFC).
The function already calls hasNoOverflow above.
Added:
Modified:
llvm/lib/Analysis/LoopAccessAnalysis.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
index 23bfd9989469a..90db89f745e89 100644
--- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp
+++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
@@ -886,7 +886,7 @@ static bool isNoWrap(PredicatedScalarEvolution &PSE, const SCEVAddRecExpr *AR,
return true;
}
- return PSE.hasNoOverflow(Ptr, SCEVWrapPredicate::IncrementNUSW);
+ return false;
}
static void visitPointers(Value *StartPtr, const Loop &InnermostLoop,
More information about the llvm-commits
mailing list