[all-commits] [llvm/llvm-project] 3df1c6: [VPlan] Add simple driver option to run some indiv...

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Feb 23 14:49:23 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3df1c6f88bfbbd76d9256c55358bb75e02e33779
      https://github.com/llvm/llvm-project/commit/3df1c6f88bfbbd76d9256c55358bb75e02e33779
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-02-23 (Mon, 23 Feb 2026)

  Changed paths:
    A llvm/include/llvm/Transforms/Vectorize/VPlanTestPass.h
    M llvm/lib/Passes/PassBuilder.cpp
    M llvm/lib/Passes/PassRegistry.def
    M llvm/lib/Transforms/Vectorize/CMakeLists.txt
    M llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp
    A llvm/lib/Transforms/Vectorize/VPlanTestPass.cpp
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.h
    A llvm/test/Transforms/LoopVectorize/VPlan/vplan-licm.ll
    A llvm/test/Transforms/LoopVectorize/VPlan/vplan-merge-blocks.ll
    A llvm/test/Transforms/LoopVectorize/VPlan/vplan-remove-dead-recipes.ll
    A llvm/test/Transforms/LoopVectorize/VPlan/vplan-simplify-recipes.ll
    A llvm/test/Transforms/LoopVectorize/VPlan/vplan-widen-from-metadata.ll

  Log Message:
  -----------
  [VPlan] Add simple driver option to run some individual transforms. (#178522)

Add an alternative to test VPlan in more isolation via a new
`vplan-test-transform` option, which builds VPlan0 for each loop in the
input IR and then can invoke a set of transforms on it.

In order to allow different recipe types to be created, a new
widen-from-metadata transform is added, which transforms VPInstructions
to different recipes, based on custom !vplan.widen metadata. Currently
this supports creating widen & replicate recipes, but can easily be
extended in the future.

Currently the handling is intentionally bare-bones, to be extended
gradually as needed.

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



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