[all-commits] [llvm/llvm-project] 830b2c: [LV] Replace redundant ExtractLastElement of reduc...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Jun 24 13:50:09 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 830b2c842e78945de0d2dbd1b58ed74b977fd5f4
      https://github.com/llvm/llvm-project/commit/830b2c842e78945de0d2dbd1b58ed74b977fd5f4
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2025-06-24 (Tue, 24 Jun 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/AArch64/vplan-printing.ll
    M llvm/test/Transforms/LoopVectorize/RISCV/vplan-vp-intrinsics-reduction.ll
    M llvm/test/Transforms/LoopVectorize/first-order-recurrence-sink-replicate-region.ll
    M llvm/test/Transforms/LoopVectorize/vplan-printing-reductions.ll

  Log Message:
  -----------
  [LV] Replace redundant ExtractLastElement of reduction result (NFC).

Replace redundant ExtractLastElement VPInstructions early. This is NFC,
as the VPInstruction computing the final result is vector-to-scalar,
producing a single scalar already. This enables follow-up changes to
model more aspects of reductions directly in VPlan.



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