[llvm] [LV] Vectorization of compress idiom (PR #83467)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 29 12:05:49 PST 2024
================
@@ -346,6 +386,13 @@ class LoopVectorizationLegality {
/// loop. Do not use after invoking 'createVectorizedLoopSkeleton' (PR34965).
int isConsecutivePtr(Type *AccessTy, Value *Ptr) const;
+ /// Returns true if \p Ptr is depends on a monotonic value and ptr diff
+ /// between two iterations is one if monotonic value is updated
+ bool isConsecutiveMonotonicPtr(Value *Ptr) const;
+
+ /// Return true if \p Ptr computation depends on monotonic value.
+ bool ptrHasMonotonicOperand(Value *Ptr) const;
----------------
alexey-bataev wrote:
```suggestion
bool hasMonotonicOperand(Value *Ptr) const;
```
https://github.com/llvm/llvm-project/pull/83467
More information about the llvm-commits
mailing list