[llvm] [LAA] Collect no-wrap predicates separately in getPtrStride/isNoWrap. (PR #203787)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 14 14:15:35 PDT 2026


================
@@ -2694,9 +2690,6 @@ class PredicatedScalarEvolution {
   /// SCEV.
   DenseMap<const SCEV *, RewriteEntry> RewriteMap;
 
-  /// Records what NoWrap flags we've added to a Value *.
-  ValueMap<Value *, SCEVWrapPredicate::IncrementWrapFlags> FlagsMap;
----------------
artagnon wrote:

Kudos to you for removing this! I was trying to strip it as well, but got hung up on the difference between SCEVWrapPredicate::IncrementWrapFlags and SCEV::NoWrapFlags. Is this a step in the direction of stripping IncrementWrapFlags entirely, eliminating the confusion between the two?

https://github.com/llvm/llvm-project/pull/203787


More information about the llvm-commits mailing list