[clang] [llvm] [LV][NFC] Rename PreferPredicateOverEpilogue to PreferTailFolding (PR #191803)

Hari Limaye via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 14 00:10:07 PDT 2026


================
@@ -205,36 +205,34 @@ static cl::opt<bool> ForceTargetSupportsMaskedMemoryOps(
     cl::desc("Assume the target supports masked memory operations (used for "
              "testing)."));
 
-// Option prefer-predicate-over-epilogue indicates that an epilogue is undesired,
-// that predication is preferred, and this lists all options. I.e., the
-// vectorizer will try to fold the tail-loop (epilogue) into the vector body
-// and predicate the instructions accordingly. If tail-folding fails, there are
-// different fallback strategies depending on these values:
-namespace PreferPredicateTy {
-  enum Option {
-    ScalarEpilogue = 0,
-    PredicateElseScalarEpilogue,
-    PredicateOrDontVectorize
-  };
-} // namespace PreferPredicateTy
+// Option prefer-tail-folding indicates that an epilogue is undesired, that
+// tail folding is preferred, and this lists all options. I.e., the vectorizer
+// will try to fold the tail-loop (epilogue) into the vector body and the
----------------
hazzlim wrote:

I think that this particular instance of the word 'predicate' here should be kept, otherwise the sentence loses meaning - we do predicate the instructions when the tail is folded.
```suggestion
// will try to fold the tail-loop (epilogue) into the vector body and predicate the
```

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


More information about the cfe-commits mailing list