[llvm] [LV]Initial support for safe distance in predicated DataWithEVL vectorization mode. (PR #102897)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 30 12:48:09 PDT 2024
================
@@ -1490,13 +1486,29 @@ class LoopVectorizationCostModel {
}
}
+ /// Disables previously chosen tail folding policy, sets it to None. Expects,
+ /// that the tail policy was selected.
+ void disableTailFolding() {
+ assert(ChosenTailFoldingStyle && "Tail folding must be selected.");
+ ChosenTailFoldingStyle =
+ std::make_pair(TailFoldingStyle::None, TailFoldingStyle::None);
+ }
+
----------------
alexey-bataev wrote:
After some thoughts, I think this may not be possible for non-power-of-2 distance. Here we need to be sure that tail-folding-with-EVL is chosen to enable selection of the non-power-of-2 maxsafedist
https://github.com/llvm/llvm-project/pull/102897
More information about the llvm-commits
mailing list