[all-commits] [llvm/llvm-project] 3f6b62: [NFC][VPlan] Split `makeMemOpWideningDecisions` in...

Andrei Elovikov via All-commits all-commits at lists.llvm.org
Fri Jun 12 09:37:01 PDT 2026


  Branch: refs/heads/users/eas/mem-widen-subpasses
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f6b62a638f9877c508e01d4ecf2f33f1084bcff
      https://github.com/llvm/llvm-project/commit/3f6b62a638f9877c508e01d4ecf2f33f1084bcff
  Author: Andrei Elovikov <andrei.elovikov at sifive.com>
  Date:   2026-06-12 (Fri, 12 Jun 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.h
    M llvm/test/Transforms/LoopVectorize/VPlan/vplan-print-after-all.ll

  Log Message:
  -----------
  [NFC][VPlan] Split `makeMemOpWideningDecisions` into subpasses

The idea is to have handling of strided memory operations (either from
https://github.com/llvm/llvm-project/pull/147297 or for VPlan-based
multiversioning for unit-strided accesses) done after some mandatory
processing has been performed (e.g., some types **must** be scalarized)
but before legacy CM's decision to widen (gather/scatter) or scalarize
has been committed.

And in longer term, we can uplift all other memory widening decision to
be done here directly at VPlan level. I expect this structure would also
be beneficial for that.


  Commit: 7b99606e8e871f2d5869e1aac684dbc295e76663
      https://github.com/llvm/llvm-project/commit/7b99606e8e871f2d5869e1aac684dbc295e76663
  Author: Andrei Elovikov <andrei.elovikov at sifive.com>
  Date:   2026-06-12 (Fri, 12 Jun 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.h

  Log Message:
  -----------
  Move helper to `LoopVectorizationPlanner.h` per code review


  Commit: 2f23d3830bd33fafda5c8aa037c585ef32732f38
      https://github.com/llvm/llvm-project/commit/2f23d3830bd33fafda5c8aa037c585ef32732f38
  Author: Andrei Elovikov <andrei.elovikov at sifive.com>
  Date:   2026-06-12 (Fri, 12 Jun 2026)

  Changed paths:
    A llvm/test/Transforms/LoopVectorize/VPlan/scalarize-irregular-type-memops.ll

  Log Message:
  -----------
  Add a test for irregular memop type scalarization


  Commit: 4e2b84a3f4ccecfb78806990d60b39e38c7b1dcd
      https://github.com/llvm/llvm-project/commit/4e2b84a3f4ccecfb78806990d60b39e38c7b1dcd
  Author: Andrei Elovikov <andrei.elovikov at sifive.com>
  Date:   2026-06-12 (Fri, 12 Jun 2026)

  Changed paths:
    A llvm/test/Transforms/LoopVectorize/VPlan/widen_mem_idioms.ll

  Log Message:
  -----------
  Add tests for `lowerMemoryIdioms`

Functions were copied from pre-existing tests.


Compare: https://github.com/llvm/llvm-project/compare/5e275ef6a33e...4e2b84a3f4cc

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