[all-commits] [llvm/llvm-project] e80bed: [VPlan] Account for any-of costs in legacy cost model

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Jun 12 12:11:26 PDT 2026


  Branch: refs/heads/release/22.x
  Home:   https://github.com/llvm/llvm-project
  Commit: e80beda6e2558f03f17351f6805e95c8687a82a9
      https://github.com/llvm/llvm-project/commit/e80beda6e2558f03f17351f6805e95c8687a82a9
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-06-12 (Fri, 12 Jun 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    A llvm/test/Transforms/LoopVectorize/X86/cost-any-of.ll

  Log Message:
  -----------
  [VPlan] Account for any-of costs in legacy cost model

Some VPlan transforms, like vectorizing fmin without fast-math,
introduce AnyOfs, which have costs assigned in the VPlan-based cost
model, but not the legacy cost model. Account for their cost like done
for other similar VPInstrctions, like EVL.

Fixes https://github.com/llvm/llvm-project/issues/185867.

(cherry picked from commit 475cc4fe0b4065775db470bb512c9c9142242e55)



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