[all-commits] [llvm/llvm-project] a35750: [VPlan] Create AnyOf and FindIV resume adjustments...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sat Oct 3 13:19:52 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a35750549f971f9f97238ff92e422ed4b5ac39bb
      https://github.com/llvm/llvm-project/commit/a35750549f971f9f97238ff92e422ed4b5ac39bb
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-10-03 (Sat, 03 Oct 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/AArch64/epilog-iv-select-cmp.ll
    M llvm/test/Transforms/LoopVectorize/AArch64/epilogue-vectorization-fix-scalar-resume-values.ll
    M llvm/test/Transforms/LoopVectorize/AArch64/find-last-iv-sinkable-expr-epilogue.ll
    M llvm/test/Transforms/LoopVectorize/AArch64/select-index.ll
    M llvm/test/Transforms/LoopVectorize/VPlan/epilogue-vectorization-printing.ll
    M llvm/test/Transforms/LoopVectorize/epilog-iv-select-cmp.ll
    M llvm/test/Transforms/LoopVectorize/epilog-vectorization-any-of-reductions.ll
    M llvm/test/Transforms/LoopVectorize/epilog-vectorization-function-entry-count.ll
    M llvm/test/Transforms/LoopVectorize/epilog-vectorization-reductions.ll
    M llvm/test/Transforms/LoopVectorize/select-min-max-last-index-epilogue.ll

  Log Message:
  -----------
  [VPlan] Create AnyOf and FindIV resume adjustments in the epilogue plan. (#227882)

AnyOf and FindIV reductions need to adjust the resume value from the
main vector loop before using it as start value of the epilogue vector
loop.

Create the fixup code as VPInstruction instead of plain IR instructions.

This is slightly simpler as we do not need to collect instructions to
move and it is also another step getting us slightly closer to
completely modeling epilogue vectorization natively in VPlan.

PR: https://github.com/llvm/llvm-project/pull/227882



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list