[llvm] [LV, VP]VP intrinsics support for the Loop Vectorizer + adding new tail-folding mode using EVL. (PR #76172)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 1 03:10:45 PDT 2024
================
@@ -1688,8 +1740,8 @@ class LoopVectorizationCostModel {
/// Control finally chosen tail folding style. The first element is used if
/// the IV update may overflow, the second element - if it does not.
- std::pair<TailFoldingStyle, TailFoldingStyle> ChosenTailFoldingStyle =
- std::make_pair(TailFoldingStyle::None, TailFoldingStyle::None);
+ std::pair<std::optional<TailFoldingStyle>, std::optional<TailFoldingStyle>>
----------------
fhahn wrote:
simpler to shift optional outside, if possible, i.e. both are either set or not set?
https://github.com/llvm/llvm-project/pull/76172
More information about the llvm-commits
mailing list