[all-commits] [llvm/llvm-project] 4b8cac: [VPlan] Don't reset canonical IV start value. (#16...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sat Oct 11 14:19:27 PDT 2025


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

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

  Log Message:
  -----------
  [VPlan] Don't reset canonical IV start value. (#161589)

Instead of re-setting the start value of the canonical IV when
vectorizing the epilogue we can emit an Add VPInstruction to provide
canonical IV value, adjusted by the resume value from the main loop.

This is in preparation to make the canonical IV a VPValue defined by
loop regions. It ensures that the canonical IV always starts at 0.

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



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