[llvm] [LV] Add -predicated-epilogue option for tail-folded epilogue (PR #190697)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 9 01:57:11 PDT 2026
================
@@ -8555,6 +8571,8 @@ static ScalarEpilogueLowering getScalarEpilogueLowering(
return CM_ScalarEpilogueNotNeededUsePredicate;
case PreferPredicateTy::PredicateOrDontVectorize:
return CM_ScalarEpilogueNotAllowedUsePredicate;
+ default:
+ break;
----------------
david-arm wrote:
Perhaps for now it's better to add the new option explicitly along with a TODO? For example, something like:
```
case PreferPredicateTy::PredicatedEpilogue:
// TODO: Add support for tail-folded vector epilogues.
return CM_ScalarEpilogueAllowed;
```
Perhaps in the TODO you can explain how you intend to handle this case?
https://github.com/llvm/llvm-project/pull/190697
More information about the llvm-commits
mailing list