[all-commits] [llvm/llvm-project] bb937e: [LV] Compute value of escaped induction based on t...

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Oct 10 12:05:08 PDT 2024


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

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/AArch64/sve-live-out-pointer-induction.ll
    M llvm/test/Transforms/LoopVectorize/X86/float-induction-x86.ll
    M llvm/test/Transforms/LoopVectorize/iv_outside_user.ll
    M llvm/test/Transforms/LoopVectorize/no-fold-tail-by-masking-iv-external-uses.ll
    M llvm/test/Transforms/LoopVectorize/pr58811-scev-expansion.ll

  Log Message:
  -----------
  [LV] Compute value of escaped induction based on the computed end value. (#110576)

Update fixupIVUsers to compute the value for escaped inductions using
the already computed end value of the induction (EndValue), but
subtracting the step.

This results in slightly simpler codegen, as we avoid computing the full
transformed index at VectorTripCount - 1.

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



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