[all-commits] [llvm/llvm-project] 49eb6d: [VPlan] Record execution frequencies on VPlan0. (#...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Sep 18 07:06:57 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 49eb6d9632a107c25e8673e47623c3dbbecf7d9a
      https://github.com/llvm/llvm-project/commit/49eb6d9632a107c25e8673e47623c3dbbecf7d9a
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-09-18 (Fri, 18 Sep 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp
    M llvm/lib/Transforms/Vectorize/VPlanPredicator.cpp
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.h
    M llvm/lib/Transforms/Vectorize/VPlanUtils.cpp
    M llvm/lib/Transforms/Vectorize/VPlanUtils.h
    A llvm/test/Transforms/LoopVectorize/VPlan/record-execution-frequencies.ll
    M llvm/test/Transforms/LoopVectorize/VPlan/vplan-print-before-after-all.ll
    M llvm/test/Transforms/LoopVectorize/replicate-region-guard-unknown-prof.ll

  Log Message:
  -----------
  [VPlan] Record execution frequencies on VPlan0. (#222337)

Move recording of the execution frequencies from
introduceMasksAndLinearize into a separate recordExecutionFrequencies
transform, run while VPlan0 still mirrors the original loop's CFG.

This more cleanly separates it from the unrelated transform and allows
the frequencies to be used to compute the cost of scalar VPlans:
https://github.com/llvm/llvm-project/pull/196845

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



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