[PATCH] D142109: [LoopVectorize] Remove runtime check and scalar tail loop when tail-folding.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 1 01:02:58 PST 2023


sdesmalen added a comment.

Thanks for reviewing! I've addressed final comments before committing



================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:8749
   VPBasicBlock *EB = TopRegion->getExitingBasicBlock();
-  EB->appendRecipe(CanonicalIVIncrement);
-
-  if (Style == TailFoldingStyle::DataAndControlFlow) {
+  if (Style == TailFoldingStyle::DataAndControlFlow ||
+      Style == TailFoldingStyle::DataAndControlFlowWithoutRuntimeCheck) {
----------------
fhahn wrote:
> Is this just `useActiveLaneMaskForControlFlow`?
You're right, not sure how I missed that :)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142109/new/

https://reviews.llvm.org/D142109



More information about the llvm-commits mailing list