[llvm] [IVDescriptors] Implement MonotonicDescriptor (PR #214490)

Gaƫtan Bossu via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 02:06:02 PDT 2026


================
@@ -482,6 +483,73 @@ class InductionDescriptor {
   SmallVector<const SCEVPredicate *, 2> NoWrapPredicates;
 };
 
+/// A struct for saving information about monotonic variables.
+/// Monotonic variable can be considered as a "conditional" induction variable:
+/// its update happens only on loop iterations for which a certain predicate is
+/// satisfied.
----------------
gbossu wrote:

I think it's worth mentioning that the step is loop-invariant.

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


More information about the llvm-commits mailing list