[llvm] [LV] Split checking if tail-folding is possible, collecting masked ops. (PR #77612)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 07:29:16 PDT 2024
================
@@ -276,9 +276,12 @@ class LoopVectorizationLegality {
bool canVectorizeFPMath(bool EnableStrictReductions);
/// Return true if we can vectorize this loop while folding its tail by
- /// masking, and mark all respective loads/stores for masking.
- /// This object's state is only modified iff this function returns true.
- bool prepareToFoldTailByMasking();
+ /// masking.
+ bool canFoldTailByMasking() const;
+
+ /// Mark all respective loads/stores for masking. Must only be called when
+ /// ail-folding is possible.
----------------
fhahn wrote:
Fixed thanks!
https://github.com/llvm/llvm-project/pull/77612
More information about the llvm-commits
mailing list