[PATCH] D154264: [LV] Skip VFs < iterations remaining for epilogue vectorization.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 30 14:31:54 PDT 2023


fhahn created this revision.
fhahn added reviewers: Ayal, gilr, dmgreen.
Herald added subscribers: artagnon, StephenFan, hiraditya.
Herald added a project: All.
fhahn requested review of this revision.
Herald added a project: LLVM.

If a candidate VF for epilogue vectorization is less than the number of
remaining iterations, the epilogue loop would be dead. Skip such factors.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D154264

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopVectorize/X86/gather_scatter.ll
  llvm/test/Transforms/LoopVectorize/X86/limit-vf-by-tripcount.ll
  llvm/test/Transforms/LoopVectorize/X86/pr42674.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154264.536432.patch
Type: text/x-patch
Size: 30200 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230630/bf2e675e/attachment.bin>


More information about the llvm-commits mailing list