[all-commits] [llvm/llvm-project] 59a718: [VPlan] Truncate/Extend ComputeReductionResult at ...

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Jun 30 14:39:39 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 59a7185dd9d69cbf737a98f5c2d1cf3d456bee03
      https://github.com/llvm/llvm-project/commit/59a7185dd9d69cbf737a98f5c2d1cf3d456bee03
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2025-06-30 (Mon, 30 Jun 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
    M llvm/test/Transforms/LoopVectorize/X86/cost-model.ll
    M llvm/test/Transforms/LoopVectorize/epilog-vectorization-reductions.ll
    M llvm/test/Transforms/LoopVectorize/reduction-small-size.ll
    M llvm/test/Transforms/LoopVectorize/scalable-reduction-inloop.ll

  Log Message:
  -----------
  [VPlan] Truncate/Extend ComputeReductionResult at construction (NFC). (#141860)

Instead of looking up the narrower reduction type via getRecurrenceType
we can generate the needed extend directly at constructiond re-use the
truncated value from the loop.

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



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