[all-commits] [llvm/llvm-project] 899d81: [LV] Skip low-trip count logic there is no scalar ...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sat Sep 26 13:14:01 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 899d817c7950c997402cd229935cd822acf45b08
      https://github.com/llvm/llvm-project/commit/899d817c7950c997402cd229935cd822acf45b08
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-09-26 (Sat, 26 Sep 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/AArch64/sve-low-trip-count.ll
    M llvm/test/Transforms/LoopVectorize/RISCV/countable-early-exit-no-epilogue.ll

  Log Message:
  -----------
  [LV] Skip low-trip count logic there is no scalar tail. (#225633)

https://github.com/llvm/llvm-project/pull/195823 added logic consider
vectorization of low trip count loops if there was no or a single
iteration remaining.

This causes loops to be vectorized with a VF where no scalar tail
remains, even if it is required for legality (loop with multiple
countable exits require scalar epilogue to pick the exit).

For now, limit to cases where there's a scalar iteration remaining.

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



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